Inheritance diagram for LoggingEvent:
Public Member Functions | |
LoggingEvent () | |
LoggingEvent (const String &fqnOfLoggerClass, const LoggerPtr &logger, const LevelPtr &level, const String &message, const char *file=0, int line=-1) | |
const LevelPtr & | getLevel () const |
const String & | getLoggerName () const |
const String & | getMessage () const |
const String & | getRenderedMessage () const |
unsigned long | getThreadId () const |
int64_t | getTimeStamp () const |
const String & | getNDC () const |
void | write (helpers::SocketOutputStreamPtr &os) const |
void | read (const helpers::SocketInputStreamPtr &is) |
String | getMDC (const String &key) const |
std::set< String > | getMDCKeySet () const |
void | getMDCCopy () const |
String | getProperty (const String &key) const |
std::set< String > | getPropertyKeySet () const |
void | setProperty (const String &key, const String &value) |
Static Public Member Functions | |
int64_t | getStartTime () |
Public Attributes | |
String | fqnOfCategoryClass |
LoggingEvent
instance is created. This instance is passed around to the different log4cxx components.This class is of concern to those wishing to extend log4cxx.
|
For serialization only |
|
Instantiate a LoggingEvent from the supplied parameters.
Except #timeStamp all the other fields of
|
|
Return the #level of this event. |
|
Return the name of the #logger. |
|
Returns the the context corresponding to the Note that both the local MDC copy and the current thread's MDC are searched. |
|
Obtain a copy of this thread's MDC prior to serialization or asynchronous logging. |
|
Returns the set of of the key values in the MDC for the event. The returned set is unmodifiable by the caller.
|
|
Return the #message for this logging event. |
|
This method returns the NDC for this event. It will return the correct content even if the event was generated in a different thread or even on a different machine. The NDC::get method should never be called directly. |
|
Return a previously set property. The return value can be null. |
|
Returns the set of of the key values in the properties for the event. The returned set is unmodifiable by the caller.
|
|
Return the #message for this logging event. |
|
Returns the time when the application started, in seconds elapsed since 01.01.1970. |
|
Return the #threadId of this event. |
|
Return the #timeStamp of this event. |
|
Read this event from a helpers::SocketOutputStream. |
|
Set a string property using a key and a string value. since 1.3 |
|
Write this event to a helpers::SocketOutputStream. |
|
Fully qualified name of the calling category class. |