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
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;
218 LogLevel getLogLevel()
const;
223 void setLogLevel(LogLevel ll);
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_
bool isEnabledFor(LogLevel ll) const
Check whether this logger is enabled for a given LogLevel passed as parameter.
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.
void forcedLog(LogLevel ll, const log4cplus::tstring &message, const char *file=NULL, int line=-1, const char *function=NULL) const
This method creates a new logging event and logs the event without further checks.
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.