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_)
108 : message(rhs.getMessage()),
109 loggerName(rhs.getLoggerName()),
110 ll(rhs.getLogLevel()),
112 thread(rhs.getThread()),
113 timestamp(rhs.getTimestamp()),
116 function(rhs.getFunction()),
122 virtual ~InternalLoggingEvent();
133 virtual unsigned int getType()
const;
154 ndc = log4cplus::getNDC().
get();
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.
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.
This header defines the LogLevel type.
a simple class which makes sure a pointer is deleted once it goes out of scope.
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.