annotate Core/Logging.h @ 101:428784e59dcd

trying to use log4cplus
author jodogne
date Wed, 03 Oct 2012 11:44:46 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
101
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
1 #pragma once
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
2
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
3 #if DCMTK_BUNDLES_LOG4CPLUS == 0
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
4 #include <log4cpp/Category.hh>
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
5 #else
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
6 #include <dcmtk/oflog/logger.h>
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
7 #endif
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
8
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
9 namespace Orthanc
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
10 {
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
11 #if DCMTK_BUNDLES_LOG4CPLUS == 0
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
12 typedef log4cpp::Category Logger;
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
13 #else
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
14 typedef OFLogger Logger;
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
15 #endif
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
16
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
17 Logger& GetLoggerInstance(const char* package);
428784e59dcd trying to use log4cplus
jodogne
parents:
diff changeset
18 }