24 #ifndef _LOG4CPLUS_LOGGERHEADER_ 25 #define _LOG4CPLUS_LOGGERHEADER_ 27 #include "dcmtk/oflog/config.h" 43 class HierarchyLocker;
44 class DefaultLoggerFactory;
57 typedef OFListIterator(
Logger) LoggerListIterator;
69 : public
log4cplus::spi::AppenderAttachable
88 static LoggerList getCurrentLoggers();
148 static void shutdown();
165 void closeNestedAppenders()
const;
173 bool isEnabledFor(
LogLevel ll)
const;
179 const char* file=NULL,
int line=-1,
180 const char*
function=NULL)
const;
187 const char* file=NULL,
int line=-1,
188 const char*
function=NULL)
const;
211 LogLevel getChainedLogLevel()
const;
239 bool getAdditivity()
const;
244 void setAdditivity(
bool additive);
253 virtual void removeAllAppenders();
323 const char* _file=NULL,
int _line=-1)
324 : logger(l), msg(_msg), file(_file), line(_line)
326 logger.forcedLog(
TRACE_LOG_LEVEL, LOG4CPLUS_TEXT(
"ENTER: ") + msg, file, line);
331 logger.forcedLog(
TRACE_LOG_LEVEL, LOG4CPLUS_TEXT(
"EXIT: ") + msg, file, line);
349 #endif // _LOG4CPLUS_LOGGERHEADER_ const LogLevel TRACE_LOG_LEVEL
The TRACE_LOG_LEVEL LogLevel is used to "trace" entry and exiting of methods.
The internal representation of logging events.
This is the central class in the log4cplus package.
spi::LoggerImpl * value
This is a pointer to the implementation class.
This is the central class in the log4cplus package.
This class is used to produce "Trace" logging.
This is used to lock a Hierarchy.
This header defines the logging macros.
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL, ERROR_LOG_LEVEL, WARN_LOG_LEVEL, INFO_LOG_LEVEL, DEBUG_LOG_LEVEL, and TRACE_LOG_LEVEL.
This class is used to create the default implementation of the Logger class.
This header defines the LogLevel type.
This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy...
a simple string class that implements a subset of std::string.
Implement this interface to create new instances of Logger or a sub-class of Logger.