mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
[Update] library plog
This commit is contained in:
1 parent
87a1701f22
commit
ee97c10702
28 files changed
+2723
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
#include <plog/Logger.h>
|
||||
|
||||
namespace plog
|
||||
{
|
||||
template<int instanceId>
|
||||
PLOG_LINKAGE_HIDDEN inline Logger<instanceId>& init(Severity maxSeverity = none, IAppender* appender = NULL)
|
||||
{
|
||||
static Logger<instanceId> logger(maxSeverity);
|
||||
return appender ? logger.addAppender(appender) : logger;
|
||||
}
|
||||
|
||||
inline Logger<PLOG_DEFAULT_INSTANCE_ID>& init(Severity maxSeverity = none, IAppender* appender = NULL)
|
||||
{
|
||||
return init<PLOG_DEFAULT_INSTANCE_ID>(maxSeverity, appender);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user