log4tango 4.0.3
Public Member Functions | Public Attributes
log4tango::LoggingEvent Struct Reference

The internal representation of logging events. More...

#include <LoggingEvent.hh>

List of all members.

Public Member Functions

 LoggingEvent (const std::string &logger, const std::string &message, Level::Value level)
 Instantiate a LoggingEvent from the supplied parameters.
 LoggingEvent (const LoggingEvent &event)
 Copy constructor.

Public Attributes

const std::string logger_name
 The logger name.
const std::string message
 The application supplied message of logging event.
Level::Value level
 Level of logging event.
long thread_id
 Name of thread in which this logging event was generated.
TimeStamp timestamp
 The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created.

Detailed Description

The internal representation of logging events.

When a affirmative logging decision is made a LoggingEvent instance is created. This instance is passed around the different log4tango components.

This class is of concern to those wishing to extend log4tango.


Constructor & Destructor Documentation

log4tango::LoggingEvent::LoggingEvent ( const std::string &  logger,
const std::string &  message,
Level::Value  level 
)

Instantiate a LoggingEvent from the supplied parameters.

Except timeStamp all the other fields of LoggingEvent are filled when actually needed.

Parameters:
loggerThe logger of this event.
messageThe message of this event.
levelThe level of this event.
log4tango::LoggingEvent::LoggingEvent ( const LoggingEvent event)

Copy constructor.


Member Data Documentation

Level of logging event.

The logger name.

The application supplied message of logging event.

Name of thread in which this logging event was generated.

id of thread in which this logging event was generated

The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created.


The documentation for this struct was generated from the following files: