spdlog/lite-example/create_lite.cpp

16 lines
285 B
C++
Raw Normal View History

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