mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
lite wip
This commit is contained in:
15
lite-example/create_lite.cpp
Normal file
15
lite-example/create_lite.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user