DCMTK
Version 3.6.1 20121102
OFFIS DICOM Toolkit
|
The internal representation of logging events. More...
Public Member Functions | |
InternalLoggingEvent (const tstring &logger, LogLevel ll_, const tstring &message_, const char *filename, int line_, const char *function_) | |
Instantiate a LoggingEvent from the supplied parameters. More... | |
InternalLoggingEvent (const tstring &logger, LogLevel ll_, const tstring &ndc_, const tstring &message_, const tstring &thread_, helpers::Time time, const tstring &file_, int line_, const tstring &function_) | |
InternalLoggingEvent (const spi::InternalLoggingEvent &rhs) | |
virtual const tstring & | getMessage () const |
The application supplied message of logging event. More... | |
virtual unsigned int | getType () const |
Returns the 'type' of InternalLoggingEvent. More... | |
virtual OFauto_ptr < InternalLoggingEvent > | clone () const |
Returns a copy of this object. More... | |
const tstring & | getLoggerName () const |
The logger of the logging event. More... | |
LogLevel | getLogLevel () const |
LogLevel of logging event. More... | |
const tstring & | getNDC () const |
The nested diagnostic context (NDC) of logging event. More... | |
const tstring & | getThread () const |
The name of thread in which this logging event was generated. More... | |
const helpers::Time & | getTimestamp () const |
The number of milliseconds elapsed from 1/1/1970 until logging event was created. More... | |
const tstring & | getFile () const |
The is the file where this log statement was written. | |
int | getLine () const |
The is the line where this log statement was written. | |
const tstring & | getFunction () const |
The is the function where this log statement was written. | |
spi::InternalLoggingEvent & | operator= (const spi::InternalLoggingEvent &rhs) |
Static Public Member Functions | |
static unsigned int | getDefaultType () |
Protected Attributes | |
tstring | message |
Private Attributes | |
tstring | loggerName |
LogLevel | ll |
tstring | ndc |
tstring | thread |
helpers::Time | timestamp |
tstring | file |
int | line |
tstring | function |
bool | threadCached |
Indicates whether or not the Threadname has been retrieved. More... | |
bool | ndcCached |
Indicates whether or not the NDC has been retrieved. More... | |
The internal representation of logging events.
When an affirmative decision is made to log then a InternalLoggingEvent
instance is created. This instance is passed around to the different log4cplus components.
This class is of concern to those wishing to extend log4cplus.
|
inline |
Instantiate a LoggingEvent from the supplied parameters.
logger | The logger of this event. |
ll_ | The LogLevel of this event. |
message_ | The message of this event. |
filename | Name of file where this event has occurred, can be NULL. |
line_ | Line number in file specified by the filename parameter. |
function_ | Function where this event has occurred |
|
virtual |
Returns a copy of this object.
Derived classes should override this method.
|
inline |
The logger of the logging event.
It is set by the LoggingEvent constructor.
|
inline |
LogLevel of logging event.
|
virtual |
The application supplied message of logging event.
|
inline |
The nested diagnostic context (NDC) of logging event.
References dcmtk::log4cplus::NDC::get().
|
inline |
The name of thread in which this logging event was generated.
|
inline |
The number of milliseconds elapsed from 1/1/1970 until logging event was created.
|
virtual |
Returns the 'type' of InternalLoggingEvent.
Derived classes should override this method. (NOTE: Values <= 1000 are reserved for log4cplus and should not be used.)
|
mutableprivate |
Indicates whether or not the NDC has been retrieved.
|
mutableprivate |
Indicates whether or not the Threadname has been retrieved.