Commit 156b856a authored by gabime's avatar gabime

static lib wip

parent e2e3df90
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment