log4cpp::LoggingEvent Struct Reference

#include <LoggingEvent.hh>

List of all members.

Public Member Functions

 LoggingEvent (const std::string &category, const std::string &message, const std::string &ndc, Priority::Value priority, const std::string &threadName, TimeStamp &timeStamp)
 create from existing logging event data
 LoggingEvent (const std::string &category, const std::string &message, const std::string &ndc, Priority::Value priority)
 LoggingEvent (const std::string &category, const std::string &message, const std::string &ndc, Priority::Value priority, const std::string &threadName, TimeStamp &timeStamp)
 create from existing logging event data
 LoggingEvent (const std::string &category, const std::string &message, const std::string &ndc, Priority::Value priority)

Public Attributes

const std::string categoryName
const std::string message
const std::string ndc
Priority::Value priority
const std::string threadName
TimeStamp timeStamp

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 log4cpp components.

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

Definition at line 32 of file include/log4cpp/LoggingEvent.hh.


Constructor & Destructor Documentation

log4cpp::LoggingEvent::LoggingEvent ( const std::string &  category,
const std::string &  message,
const std::string &  ndc,
Priority::Value  priority 
)

Instantiate a LoggingEvent from the supplied parameters.

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

Parameters:
category The category of this event.
message The message of this event.
ndc The nested diagnostic context of this event.
priority The priority of this event.

Definition at line 16 of file LoggingEvent.cpp.

log4cpp::LoggingEvent::LoggingEvent ( const std::string &  category,
const std::string &  message,
const std::string &  ndc,
Priority::Value  priority,
const std::string &  threadName,
TimeStamp timeStamp 
)

create from existing logging event data

Definition at line 28 of file LoggingEvent.cpp.

log4cpp::LoggingEvent::LoggingEvent ( const std::string &  category,
const std::string &  message,
const std::string &  ndc,
Priority::Value  priority 
)

Instantiate a LoggingEvent from the supplied parameters.

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

Parameters:
category The category of this event.
message The message of this event.
ndc The nested diagnostic context of this event.
priority The priority of this event.
log4cpp::LoggingEvent::LoggingEvent ( const std::string &  category,
const std::string &  message,
const std::string &  ndc,
Priority::Value  priority,
const std::string &  threadName,
TimeStamp timeStamp 
)

create from existing logging event data


Member Data Documentation

The category name.

Definition at line 58 of file include/log4cpp/LoggingEvent.hh.

const std::string log4cpp::LoggingEvent::message

The application supplied message of logging event.

Definition at line 61 of file include/log4cpp/LoggingEvent.hh.

const std::string log4cpp::LoggingEvent::ndc

The nested diagnostic context (NDC) of logging event.

Definition at line 64 of file include/log4cpp/LoggingEvent.hh.

Priority of logging event.

Definition at line 67 of file include/log4cpp/LoggingEvent.hh.

The name of thread in which this logging event was generated, e.g. the PID.

Definition at line 72 of file include/log4cpp/LoggingEvent.hh.

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

Definition at line 76 of file include/log4cpp/LoggingEvent.hh.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


log4cpp
Author(s): Stephen Roderick
autogenerated on Fri Jan 11 09:51:55 2013