diff Core/Logging.cpp @ 1551:0dba274074eb

standalone logging
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Aug 2015 14:57:41 +0200
parents 46b2794042d6
children b6f656a0bf2c
line wrap: on
line diff
--- a/Core/Logging.cpp	Mon Aug 17 15:57:44 2015 +0200
+++ b/Core/Logging.cpp	Tue Aug 18 14:57:41 2015 +0200
@@ -33,10 +33,35 @@
 #include "PrecompiledHeaders.h"
 #include "Logging.h"
 
-#if ORTHANC_ENABLE_LOGGING == 1
+#if ORTHANC_ENABLE_LOGGING != 1
+
+namespace Orthanc
+{
+  namespace Logging
+  {
+    void Initialize()
+    {
+    }
+
+    void Finalize()
+    {
+    }
 
+    void EnableInfoLevel(bool enabled)
+    {
+    }
 
-#if ORTHANC_ENABLE_GOOGLE_LOG == 1
+    void EnableTraceLevel(bool enabled)
+    {
+    }
+
+    void SetTargetFolder(const std::string& path)
+    {
+    }
+  }
+}
+
+#elif ORTHANC_ENABLE_GOOGLE_LOG == 1
 
 /*********************************************************
  * Wrapper around Google Log
@@ -393,7 +418,4 @@
   }
 }
 
-#endif
-
-
 #endif   // ORTHANC_ENABLE_LOGGING