comparison OrthancServer/Resources/Samples/CppHelpers/Logging/OrthancLogger.cpp @ 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/OrthancLogger.cpp@fbe22748cd9c
children c847b0dfd255
comparison
equal deleted inserted replaced
4043:6c6239aec462 4044:d25f4c0fa160
1 #include "OrthancLogger.h"
2 #include "Logging.h"
3
4 namespace OrthancHelpers
5 {
6
7 void OrthancLogger::Trace(const char *message)
8 {
9 VLOG(1) << GetContext() << " " << message;
10 }
11
12 void OrthancLogger::Trace(const std::string& message)
13 {
14 VLOG(1) << GetContext() << " " << message;
15 }
16
17 void OrthancLogger::Info(const char *message)
18 {
19 LOG(INFO) << GetContext() << " " << message;
20 }
21
22 void OrthancLogger::Info(const std::string& message)
23 {
24 LOG(INFO) << GetContext() << " " << message;
25 }
26
27 void OrthancLogger::Warning(const char *message)
28 {
29 LOG(WARNING) << GetContext() << " " << message;
30 }
31
32 void OrthancLogger::Warning(const std::string& message)
33 {
34 LOG(WARNING) << GetContext() << " " << message;
35 }
36
37 void OrthancLogger::Error(const char *message)
38 {
39 LOG(ERROR) << GetContext() << " " << message;
40 }
41
42 void OrthancLogger::Error(const std::string& message)
43 {
44 LOG(ERROR) << GetContext() << " " << message;
45 }
46 }