OFFIS DCMTK
Version 3.6.0
|
The internal representation of logging events. More...
Public Member Functions | |
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. | |
InternalLoggingEvent (const log4cplus::tstring &logger, LogLevel ll_, const log4cplus::tstring &ndc_, const log4cplus::tstring &message_, const log4cplus::tstring &thread_, log4cplus::helpers::Time time, const log4cplus::tstring &file_, int line_, const log4cplus::tstring &function_) | |
InternalLoggingEvent (const log4cplus::spi::InternalLoggingEvent &rhs) | |
virtual const log4cplus::tstring & | getMessage () const |
The application supplied message of logging event. | |
virtual unsigned int | getType () const |
Returns the 'type' of InternalLoggingEvent. | |
virtual OFauto_ptr < InternalLoggingEvent > | clone () const |
Returns a copy of this object. | |
const log4cplus::tstring & | getLoggerName () const |
The logger of the logging event. | |
LogLevel | getLogLevel () const |
LogLevel of logging event. | |
const log4cplus::tstring & | getNDC () const |
The nested diagnostic context (NDC) of logging event. | |
const log4cplus::tstring & | getThread () const |
The name of thread in which this logging event was generated. | |
const log4cplus::helpers::Time & | getTimestamp () const |
The number of milliseconds elapsed from 1/1/1970 until logging event was created. | |
const log4cplus::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 log4cplus::tstring & | getFunction () const |
The is the function where this log statement was written. | |
log4cplus::spi::InternalLoggingEvent & | operator= (const log4cplus::spi::InternalLoggingEvent &rhs) |
Static Public Member Functions | |
static unsigned int | getDefaultType () |
Protected Attributes | |
log4cplus::tstring | message |
Private Attributes | |
log4cplus::tstring | loggerName |
LogLevel | ll |
log4cplus::tstring | ndc |
log4cplus::tstring | thread |
log4cplus::helpers::Time | timestamp |
log4cplus::tstring | file |
int | line |
log4cplus::tstring | function |
bool | threadCached |
Indicates whether or not the Threadname has been retrieved. | |
bool | ndcCached |
Indicates whether or not the NDC has been retrieved. | |
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.
Definition at line 45 of file logevent.h.
|
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 |
Definition at line 60 of file logevent.h.
|
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.
Definition at line 146 of file logevent.h.
|
inline |
LogLevel of logging event.
Definition at line 149 of file logevent.h.
|
virtual |
The application supplied message of logging event.
|
inline |
The nested diagnostic context (NDC) of logging event.
Definition at line 152 of file logevent.h.
References log4cplus::NDC::get().
|
inline |
The name of thread in which this logging event was generated.
Definition at line 161 of file logevent.h.
|
inline |
The number of milliseconds elapsed from 1/1/1970 until logging event was created.
Definition at line 171 of file logevent.h.
|
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.
Definition at line 205 of file logevent.h.
|
mutableprivate |
Indicates whether or not the Threadname has been retrieved.
Definition at line 203 of file logevent.h.