Commit 156b856a authored by gabime's avatar gabime

static lib wip

parent e2e3df90
...@@ -9,15 +9,12 @@ ...@@ -9,15 +9,12 @@
#include "spdlog/logger.h" #include "spdlog/logger.h"
spdlog::logger *get_logger(); spdlog::logger *get_logger();
int main(int, char *[]) int main(int, char *[])
{ {
auto *l = get_logger(); auto *l = get_logger();
l->info("HELLO {}", "World"); l->info("HELLO {}", "GA");
l->warn("SOME WARNINNG");
l->error("Some {}", "error"); l->error("Some {}", "error");
......
...@@ -12,7 +12,6 @@ namespace spdlog { ...@@ -12,7 +12,6 @@ namespace spdlog {
namespace details { namespace details {
struct log_msg struct log_msg
{ {
log_msg(source_loc loc, const std::string *loggers_name, level::level_enum lvl, string_view_t view); 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); log_msg(const std::string *loggers_name, level::level_enum lvl, string_view_t view);
......
...@@ -4,19 +4,7 @@ ...@@ -4,19 +4,7 @@
// //
#pragma once #pragma once
#include "../common.h" #include "spdlog/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>
namespace spdlog { namespace spdlog {
namespace details { namespace details {
......
...@@ -1333,3 +1333,7 @@ private: ...@@ -1333,3 +1333,7 @@ private:
} }
}; };
} // namespace spdlog } // 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