spdlog/lite-example/create_lite.cpp

14 lines
287 B
C++
Raw Normal View History

2019-03-23 19:31:57 +08:00
#include "logger.h"
#include "spdlog/spdlog.h"
2019-03-23 22:39:32 +08:00
spdlog::lite::logger spdlog::create_lite(void *ctx)
2019-03-23 19:31:57 +08:00
{
2019-03-23 22:39:32 +08:00
if (ctx)
{
2019-03-23 19:31:57 +08:00
//..
}
auto logger_impl = spdlog::default_logger();
logger_impl->set_level(spdlog::level::trace);
return spdlog::lite::logger(logger_impl);
}