mirror of
https://github.com/caozhiyi/CppNet.git
synced 2026-01-19 00:05:14 +08:00
add log level config.
This commit is contained in:
@@ -29,7 +29,7 @@ void CppNet::Init(int32_t thread_num) {
|
||||
std::shared_ptr<Logger> std_log = std::make_shared<StdoutLogger>();
|
||||
file_log->SetLogger(std_log);
|
||||
LOG_SET(file_log);
|
||||
LOG_SET_LEVEL(LL_DEBUG);
|
||||
LOG_SET_LEVEL((LogLevel)__log_level);
|
||||
} else {
|
||||
LOG_SET_LEVEL(LL_NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user