mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
static lib wip
This commit is contained in:
parent
e2e3df9013
commit
156b856a80
@ -9,15 +9,12 @@
|
||||
|
||||
#include "spdlog/logger.h"
|
||||
|
||||
|
||||
|
||||
spdlog::logger *get_logger();
|
||||
|
||||
int main(int, char *[])
|
||||
{
|
||||
auto *l = get_logger();
|
||||
l->info("HELLO {}", "World");
|
||||
l->warn("SOME WARNINNG");
|
||||
l->info("HELLO {}", "GA");
|
||||
l->error("Some {}", "error");
|
||||
|
||||
|
||||
|
@ -12,7 +12,6 @@ namespace spdlog {
|
||||
namespace details {
|
||||
struct log_msg
|
||||
{
|
||||
|
||||
log_msg(source_loc loc, const std::string *loggers_name, level::level_enum lvl, string_view_t view);
|
||||
|
||||
log_msg(const std::string *loggers_name, level::level_enum lvl, string_view_t view);
|
||||
|
@ -4,19 +4,7 @@
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <ctime>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <thread>
|
||||
#include "spdlog/common.h"
|
||||
|
||||
namespace spdlog {
|
||||
namespace details {
|
||||
|
@ -1333,3 +1333,7 @@ private:
|
||||
}
|
||||
};
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#include "../src/os.cpp"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user