diff Core/Logging.h @ 101:428784e59dcd

trying to use log4cplus
author jodogne
date Wed, 03 Oct 2012 11:44:46 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Core/Logging.h	Wed Oct 03 11:44:46 2012 +0200
@@ -0,0 +1,18 @@
+#pragma once
+
+#if DCMTK_BUNDLES_LOG4CPLUS == 0
+#include <log4cpp/Category.hh>
+#else
+#include <dcmtk/oflog/logger.h>
+#endif
+
+namespace Orthanc
+{
+#if DCMTK_BUNDLES_LOG4CPLUS == 0
+  typedef log4cpp::Category Logger;
+#else
+  typedef OFLogger Logger;
+#endif
+
+  Logger& GetLoggerInstance(const char* package);
+}