23 #ifndef _LOG4CPLUS_SPI_INTERNAL_LOGGING_EVENT_HEADER_ 24 #define _LOG4CPLUS_SPI_INTERNAL_LOGGING_EVENT_HEADER_ 26 #include "dcmtk/oflog/config.h" 33 #include "dcmtk/ofstd/ofaptr.h" 65 const char* function_)
71 timestamp(
log4cplus::helpers::Time::gettimeofday()),
73 ? LOG4CPLUS_C_STR_TO_TSTRING(filename)
77 ? LOG4CPLUS_C_STR_TO_TSTRING(function_)
133 virtual unsigned int getType()
const;
163 thread = LOG4CPLUS_GET_CURRENT_THREAD_NAME;
187 static unsigned int getDefaultType();
211 #endif // _LOG4CPLUS_SPI_INTERNAL_LOGGING_EVENT_HEADER_ const log4cplus::tstring & getFile() const
The is the file where this log statement was written.
The internal representation of logging events.
log4cplus::tstring get()
Used when printing the diagnostic context.
const log4cplus::helpers::Time & getTimestamp() const
The number of milliseconds elapsed from 1/1/1970 until logging event was created. ...
LogLevel getLogLevel() const
LogLevel of logging event.
const log4cplus::tstring & getFunction() const
The is the function where this log statement was written.
const log4cplus::tstring & getNDC() const
The nested diagnostic context (NDC) of logging event.
LOG4CPLUS_EXPORT NDC & getNDC()
Return a reference to the singleton object.
This class represents a Epoch time with microsecond accuracy.
const log4cplus::tstring & getThread() const
The name of thread in which this logging event was generated.
const log4cplus::tstring & getLoggerName() const
The logger of the logging event.
int getLine() const
The is the line where this log statement was written.
bool ndcCached
Indicates whether or not the NDC has been retrieved.
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 header defines the LogLevel type.
a simple class which makes sure a pointer is deleted once it goes out of scope.
virtual const log4cplus::tstring & getMessage() const
The application supplied message of logging event.
a simple string class that implements a subset of std::string.
bool threadCached
Indicates whether or not the Threadname has been retrieved.
InternalLoggingEvent(const log4cplus::tstring &logger, LogLevel ll_, const log4cplus::tstring &message_, const char *filename, int line_, const char *function_)
Instantiate a LoggingEvent from the supplied parameters.
This header defined the NDC class.