comparison OrthancServer/Resources/Samples/CppHelpers/Logging/OrthancPluginLogger.h @ 4044:d25f4c0fa160 framework

splitting code into OrthancFramework and OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jun 2020 20:30:34 +0200
parents Resources/Samples/CppHelpers/Logging/OrthancPluginLogger.h@fbe22748cd9c
children c847b0dfd255
comparison
equal deleted inserted replaced
4043:6c6239aec462 4044:d25f4c0fa160
1 #pragma once
2
3 #include "ILogger.h"
4 #include <orthanc/OrthancCPlugin.h>
5
6 namespace OrthancHelpers
7 {
8
9 class OrthancPluginLogger : public BaseLogger
10 {
11 OrthancPluginContext *pluginContext_;
12 bool hasAlreadyLoggedTraceWarning_;
13
14 public:
15 OrthancPluginLogger(OrthancPluginContext *context);
16
17 virtual void Trace(const char *message);
18 virtual void Trace(const std::string &message);
19 virtual void Info(const char *message);
20 virtual void Info(const std::string &message);
21 virtual void Warning(const char *message);
22 virtual void Warning(const std::string &message);
23 virtual void Error(const char *message);
24 virtual void Error(const std::string &message);
25 };
26 } // namespace OrthancHelpers