Public Member Functions | Public Attributes | Private Member Functions | List of all members
LoggingEvent Struct Reference

The top level namespace for all 'Log for C++' types and classes. More...

#include <LoggingEvent.hh>

Public Member Functions

 LoggingEvent (const std::string &category, const std::string &message, const std::string &ndc, Priority::Value priority)
 Instantiate a LoggingEvent from the supplied parameters. More...
 

Public Attributes

const std::string categoryName
 The category name. More...
 
const std::string message
 The application supplied message of logging event. More...
 
const std::string ndc
 The nested diagnostic context (NDC) of logging event. More...
 
Priority::Value priority
 Priority of logging event. More...
 
const std::string threadName
 The name of thread in which this logging event was generated, e.g. More...
 
TimeStamp timeStamp
 The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created. More...
 

Private Member Functions

LoggingEventoperator= (const LoggingEvent &)
 

Detailed Description

The top level namespace for all 'Log for C++' types and classes.

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 LoggingEvent.hh.

Constructor & Destructor Documentation

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
categoryThe category of this event.
messageThe message of this event.
ndcThe nested diagnostic context of this event.
priorityThe priority of this event.

Member Function Documentation

LoggingEvent& LoggingEvent::operator= ( const LoggingEvent )
private

Member Data Documentation

const std::string LoggingEvent::categoryName

The category name.

Definition at line 50 of file LoggingEvent.hh.

const std::string LoggingEvent::message

The application supplied message of logging event.

Definition at line 53 of file LoggingEvent.hh.

const std::string LoggingEvent::ndc

The nested diagnostic context (NDC) of logging event.

Definition at line 56 of file LoggingEvent.hh.

Priority::Value LoggingEvent::priority

Priority of logging event.

Definition at line 59 of file LoggingEvent.hh.

const std::string LoggingEvent::threadName

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

the PID.

Definition at line 64 of file LoggingEvent.hh.

TimeStamp LoggingEvent::timeStamp

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

Definition at line 68 of file LoggingEvent.hh.


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


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Mar 17 2021 02:48:41