DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes
dcmtk::log4cplus::spi::InternalLoggingEvent Class Reference

The internal representation of logging events. More...

List of all members.

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.
 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 tstringgetMessage () 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 tstringgetLoggerName () const
 The logger of the logging event.
LogLevel getLogLevel () const
 LogLevel of logging event.
const tstringgetNDC () const
 The nested diagnostic context (NDC) of logging event.
const tstringgetThread () const
 The name of thread in which this logging event was generated.
const helpers::TimegetTimestamp () const
 The number of milliseconds elapsed from 1/1/1970 until logging event was created.
const tstringgetFile () 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 tstringgetFunction () const
 The is the function where this log statement was written.
spi::InternalLoggingEventoperator= (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.
bool ndcCached
 Indicates whether or not the NDC has been retrieved.

Detailed Description

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.


Constructor & Destructor Documentation

dcmtk::log4cplus::spi::InternalLoggingEvent::InternalLoggingEvent ( const tstring logger,
LogLevel  ll_,
const tstring message_,
const char *  filename,
int  line_,
const char *  function_ 
) [inline]

Instantiate a LoggingEvent from the supplied parameters.

Parameters:
loggerThe logger of this event.
ll_The LogLevel of this event.
message_The message of this event.
filenameName 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

Member Function Documentation

Returns a copy of this object.

Derived classes should override this method.

The logger of the logging event.

It is set by the LoggingEvent constructor.

LogLevel of logging event.

The application supplied message of logging event.

The nested diagnostic context (NDC) of logging event.

The name of thread in which this logging event was generated.

The number of milliseconds elapsed from 1/1/1970 until logging event was created.

virtual unsigned int dcmtk::log4cplus::spi::InternalLoggingEvent::getType ( ) const [virtual]

Returns the 'type' of InternalLoggingEvent.

Derived classes should override this method. (NOTE: Values <= 1000 are reserved for log4cplus and should not be used.)


Member Data Documentation

Indicates whether or not the NDC has been retrieved.

Indicates whether or not the Threadname has been retrieved.


The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027