log4cpp
1.1.6
Toggle main menu visibility
Loading...
Searching...
No Matches
LoggingEvent.hh
Go to the documentation of this file.
1
/*
2
* LoggingEvent.hh
3
*
4
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5
* Copyright 2000, Bastiaan Bakker. All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#ifndef _LOG4CPP_LOGGINGEVENT_HH
11
#define _LOG4CPP_LOGGINGEVENT_HH
12
13
#include <
log4cpp/Portability.hh
>
14
#include <string>
15
16
#include <
log4cpp/Priority.hh
>
17
#include <
log4cpp/TimeStamp.hh
>
18
22
namespace
log4cpp
{
23
32
struct
LOG4CPP_EXPORT
LoggingEvent
{
33
public
:
45
LoggingEvent
(
const
std::string& category,
const
std::string&
message
,
const
std::string&
ndc
,
46
Priority::Value
priority
);
47
49
const
std::string
categoryName
;
50
52
const
std::string
message
;
53
55
const
std::string
ndc
;
56
58
Priority::Value
priority
;
59
63
const
std::string
threadName
;
64
67
TimeStamp
timeStamp
;
68
};
69
}
// namespace log4cpp
70
71
#endif
// _LOG4CPP_LOGGINGEVENT_HH
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition
Export.hh:26
Portability.hh
Priority.hh
TimeStamp.hh
log4cpp::Priority::Value
int Value
The type of Priority Values.
Definition
Priority.hh:85
log4cpp::TimeStamp
A simple TimeStamp abstraction.
Definition
TimeStamp.hh:20
log4cpp
The top level namespace for all 'Log for C++' types and classes.
Definition
AbortAppender.hh:16
log4cpp::LoggingEvent::message
const std::string message
The application supplied message of logging event.
Definition
LoggingEvent.hh:52
log4cpp::LoggingEvent::categoryName
const std::string categoryName
The category name.
Definition
LoggingEvent.hh:49
log4cpp::LoggingEvent::ndc
const std::string ndc
The nested diagnostic context (NDC) of logging event.
Definition
LoggingEvent.hh:55
log4cpp::LoggingEvent::threadName
const std::string threadName
The name of thread in which this logging event was generated, e.g.
Definition
LoggingEvent.hh:63
log4cpp::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
log4cpp::LoggingEvent::priority
Priority::Value priority
Priority of logging event.
Definition
LoggingEvent.hh:58
log4cpp::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:67
include
log4cpp
LoggingEvent.hh
Generated by
1.17.0