static lib wip

This commit is contained in:
gabime 2019-04-05 16:57:49 +03:00
parent e2e3df9013
commit 156b856a80
4 changed files with 6 additions and 18 deletions

View File

@ -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");

View File

@ -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);

View File

@ -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 {

View File

@ -1333,3 +1333,7 @@ private:
} }
}; };
} // namespace spdlog } // namespace spdlog
#ifdef SPDLOG_HEADER_ONLY
#include "../src/os.cpp"
#endif