1 #ifndef STAR_STLOGGERCONFIG
2 #define STAR_STLOGGERCONFIG
8 # define STAR_LOG4CXX_VERSION 10
10 # define STAR_LOG4CXX_VERSION 9
13 #include <log4cxx/helpers/stringhelper.h>
15 #if (STAR_LOG4CXX_VERSION == 9)
16 # include <log4cxx/config.h>
17 # include <log4cxx/varia/stringmatchfilter.h>
18 # include <log4cxx/varia/denyallfilter.h>
19 # define LOG4CXX_LEVEL_FATAL Level::FATAL
20 # define LOG4CXX_LEVEL_ERROR Level::ERROR
21 # define LOG4CXX_LEVEL_WARN Level::WARN
22 # define LOG4CXX_LEVEL_INFO Level::INFO
23 # define LOG4CXX_LEVEL_DEBUG Level::DEBUG
24 # define LocationInfo(sourceFileName,sourceFunction,lineNumber) sourceFileName,lineNumber
26 # include <log4cxx/logstring.h>
27 # include <log4cxx/filter/stringmatchfilter.h>
28 # include <log4cxx/filter/denyallfilter.h>
29 # include <log4cxx/helpers/messagebuffer.h>
30 # define LOG4CXX_LEVEL_FATAL Level::getFatal()
31 # define LOG4CXX_LEVEL_ERROR Level::getError()
32 # define LOG4CXX_LEVEL_WARN Level::getWarn()
33 # define LOG4CXX_LEVEL_INFO Level::getInfo()
34 # define LOG4CXX_LEVEL_DEBUG Level::getDebug()
36 typedef LogString String;
37 typedef helpers::CharMessageBuffer StringBuffer;
40 #define _T(str) std::string(str)
46 inline bool equalsIgnoreCase(
const String& option1,
const String& option2)
49 helpers::StringHelper::equalsIgnoreCase(option1,option2
50 #
if (STAR_LOG4CXX_VERSION==10)