Mercurial > hg > orthanc
diff Core/Logging.cpp @ 3996:c2b9a7a1c74a
ORTHANC_FRAMEWORK_BUILDING_PLUGIN
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Jun 2020 18:26:01 +0200 |
parents | 1f405a3fdeca |
children | b3f09bc9734b |
line wrap: on
line diff
--- a/Core/Logging.cpp Fri Jun 05 18:08:17 2020 +0200 +++ b/Core/Logging.cpp Fri Jun 05 18:26:01 2020 +0200 @@ -167,7 +167,7 @@ globalTraceLogFunc = traceLogFunc; } - InternalLogger::InternalLogger(InternalLevel level, + InternalLogger::InternalLogger(Level level, const char* file /* ignored */, int line /* ignored */) : level_(level) @@ -180,15 +180,15 @@ switch (level_) { - case InternalLevel_ERROR: + case Level_ERROR: globalErrorLogFunc(message.c_str()); break; - case InternalLevel_WARNING: + case Level_WARNING: globalWarningLogFunc(message.c_str()); break; - case InternalLevel_INFO: + case Level_INFO: if (globalVerbose_) { globalInfoLogFunc(message.c_str()); @@ -196,7 +196,7 @@ } break; - case InternalLevel_TRACE: + case Level_TRACE: if (globalTrace_) { globalTraceLogFunc(message.c_str()); @@ -310,7 +310,7 @@ context_ = reinterpret_cast<OrthancPluginContext*>(context); } - InternalLogger::InternalLogger(InternalLevel level, + InternalLogger::InternalLogger(Level level, const char* file /* ignored */, int line /* ignored */) : level_(level) @@ -324,19 +324,19 @@ { switch (level_) { - case InternalLevel_ERROR: + case Level_ERROR: context_->InvokeService(context_, _OrthancPluginService_LogError, message.c_str()); break; - case InternalLevel_WARNING: + case Level_WARNING: context_->InvokeService(context_, _OrthancPluginService_LogWarning, message.c_str()); break; - case InternalLevel_INFO: + case Level_INFO: context_->InvokeService(context_, _OrthancPluginService_LogInfo, message.c_str()); break; - case InternalLevel_TRACE: + case Level_TRACE: // Not used by plugins break;