Loading...
Searching...
No Matches
LoggingEvent.hh
Go to the documentation of this file.
/*
* LoggingEvent.hh
*
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2000, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4SHIB_LOGGINGEVENT_HH
#define _LOG4SHIB_LOGGINGEVENT_HH
#include <log4shib/Portability.hh>
#include <string>
#include <log4shib/Priority.hh>
#include <log4shib/TimeStamp.hh>
namespace log4shib {
struct LOG4SHIB_EXPORT LoggingEvent {
public:
LoggingEvent(const std::string& category, const std::string& message,
const std::string& ndc, Priority::Value priority);
const std::string categoryName;
const std::string message;
const std::string ndc;
Priority::Value priority;
const std::string threadName;
TimeStamp timeStamp;
};
}
#endif // _LOG4SHIB_LOGGINGEVENT_HH
LOG4SHIB_EXPORT
#define LOG4SHIB_EXPORT
Definition Export.hh:11
Portability.hh
Priority.hh
TimeStamp.hh
log4shib::Priority::Value
int Value
The type of Priority Values.
Definition Priority.hh:84
log4shib::TimeStamp
A simple TimeStamp abstraction.
Definition TimeStamp.hh:20
log4shib
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
log4shib::LoggingEvent::ndc
const std::string ndc
The nested diagnostic context (NDC) of logging event.
Definition LoggingEvent.hh:56
log4shib::LoggingEvent::timeStamp
TimeStamp timeStamp
The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created...
Definition LoggingEvent.hh:68
log4shib::LoggingEvent::threadName
const std::string threadName
The name of thread in which this logging event was generated, e.g.
Definition LoggingEvent.hh:64
log4shib::LoggingEvent::message
const std::string message
The application supplied message of logging event.
Definition LoggingEvent.hh:53
log4shib::LoggingEvent::priority
Priority::Value priority
Priority of logging event.
Definition LoggingEvent.hh:59
log4shib::LoggingEvent::LoggingEvent
LoggingEvent(const std::string &category, const std::string &message, const std::string &ndc, Priority::Value priority)
Instantiate a LoggingEvent from the supplied parameters.
Definition LoggingEvent.cpp:16
log4shib::LoggingEvent::categoryName
const std::string categoryName
The category name.
Definition LoggingEvent.hh:50