Mercurial > hg > orthanc
comparison Core/Logging.h @ 2014:e39a2657f1c6
Dropped support of Google Log
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 13 Jun 2016 13:39:10 +0200 |
parents | b1291df2f780 |
children | bcc575732aef |
comparison
equal
deleted
inserted
replaced
2013:f6e68c0c2737 | 2014:e39a2657f1c6 |
---|---|
70 # define LOG(level) ::Orthanc::Logging::NullStream() | 70 # define LOG(level) ::Orthanc::Logging::NullStream() |
71 # define VLOG(level) ::Orthanc::Logging::NullStream() | 71 # define VLOG(level) ::Orthanc::Logging::NullStream() |
72 | 72 |
73 #else /* ORTHANC_ENABLE_LOGGING == 1 */ | 73 #else /* ORTHANC_ENABLE_LOGGING == 1 */ |
74 | 74 |
75 #if ORTHANC_ENABLE_GOOGLE_LOG == 1 | |
76 # include <stdlib.h> // Including this fixes a problem in glog for recent releases of MinGW | |
77 # include <glog/logging.h> | |
78 #else | |
79 # include <boost/thread/mutex.hpp> | 75 # include <boost/thread/mutex.hpp> |
80 # define LOG(level) ::Orthanc::Logging::InternalLogger(#level, __FILE__, __LINE__) | 76 # define LOG(level) ::Orthanc::Logging::InternalLogger(#level, __FILE__, __LINE__) |
81 # define VLOG(level) ::Orthanc::Logging::InternalLogger("TRACE", __FILE__, __LINE__) | 77 # define VLOG(level) ::Orthanc::Logging::InternalLogger("TRACE", __FILE__, __LINE__) |
82 #endif | |
83 | 78 |
84 #if ORTHANC_ENABLE_GOOGLE_LOG != 1 | |
85 namespace Orthanc | 79 namespace Orthanc |
86 { | 80 { |
87 namespace Logging | 81 namespace Logging |
88 { | 82 { |
89 class InternalLogger | 83 class InternalLogger |
105 return (*stream_) << message; | 99 return (*stream_) << message; |
106 } | 100 } |
107 }; | 101 }; |
108 } | 102 } |
109 } | 103 } |
110 #endif | |
111 | 104 |
112 #endif // ORTHANC_ENABLE_LOGGING | 105 #endif // ORTHANC_ENABLE_LOGGING |