log4tango::LoggingEvent - The internal representation of logging events.
Contents
Constructor & Destructor Documentation
log4tango::LoggingEvent::LoggingEvent(conststd::string&logger,conststd::string&message,Level::Valuelevel)
Instantiate a LoggingEvent from the supplied parameters. Except timeStamp all the other fields of
LoggingEventarefilledwhenactuallyneeded.Parameterslogger The logger of this event.
message The message of this event.
level The level of this event.
log4tango::LoggingEvent::LoggingEvent(constLoggingEvent&event)
Copy constructor.
Detailed Description
The internal representation of logging events.
When a affirmative logging decision is made a LoggingEventinstanceiscreated.Thisinstanceispassedaroundthedifferentlog4tangocomponents.
This class is of concern to those wishing to extend log4tango.
Member Data Documentation
Level::Valuelog4tango::LoggingEvent::levelLevel of logging event.
conststd::stringlog4tango::LoggingEvent::logger_name
The logger name.
conststd::stringlog4tango::LoggingEvent::message
The application supplied message of logging event.
longlog4tango::LoggingEvent::thread_id
id of thread in which this logging event was generated
std::stringlog4tango::LoggingEvent::thread_name
Name of thread in which this logging event was generated.
TimeStamplog4tango::LoggingEvent::timestamp
The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created.
Name
log4tango::LoggingEvent - The internal representation of logging events.
Synopsis
#include <LoggingEvent.hh>
PublicMemberFunctionsLoggingEvent (const std::string &logger, const std::string &message, Level::Valuelevel)
Instantiate a LoggingEvent from the supplied parameters.
LoggingEvent (const LoggingEvent &event)
Copy constructor.
PublicAttributes
const std::string logger_name
The logger name.
const std::string message
The application supplied message of logging event.
Level::ValuelevelLevel of logging event.
std::string thread_name
Name of thread in which this logging event was generated.
long thread_id
id of thread in which this logging event was generated
TimeStamptimestamp
The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was
created.
