3460
|
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 }
|