Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
LoggingEvent.cpp
Go to the documentation of this file.
1
/*
2
* LoggingEvent.cpp
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
#include "
PortabilityImpl.hh
"
11
#include <
log4cpp/LoggingEvent.hh
>
12
#include <
log4cpp/threading/Threading.hh
>
13
14
namespace
log4cpp
{
15
16
LoggingEvent::LoggingEvent
(
const
std::string& categoryName,
17
const
std::string& message,
18
const
std::string& ndc,
19
Priority::Value
priority) :
20
categoryName(categoryName),
21
message(message),
22
ndc(ndc),
23
priority(priority),
24
threadName(threading::
getThreadId
()) {
25
}
26
27
28
LoggingEvent::LoggingEvent
(
const
std::string&
categoryName
,
29
const
std::string&
message
,
30
const
std::string&
ndc
,
31
Priority::Value
priority
,
32
const
std::string&
threadName
,
33
TimeStamp
&
timeStamp
) :
34
categoryName(categoryName),
35
message(message),
36
ndc(ndc),
37
priority(priority),
38
threadName(threadName),
39
timeStamp(timeStamp)
40
{
41
}
42
}
LoggingEvent.hh
PortabilityImpl.hh
log4cpp::LoggingEvent::message
const std::string message
Definition:
LoggingEvent.hh:61
log4cpp::threading::getThreadId
static std::string getThreadId()
Definition:
BoostThreads.hh:22
log4cpp::LoggingEvent::timeStamp
TimeStamp timeStamp
Definition:
LoggingEvent.hh:76
log4cpp::LoggingEvent::priority
Priority::Value priority
Definition:
LoggingEvent.hh:67
log4cpp::LoggingEvent::threadName
const std::string threadName
Definition:
LoggingEvent.hh:72
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::Priority::Value
int Value
Definition:
Priority.hh:85
log4cpp::TimeStamp
Definition:
TimeStamp.hh:20
log4cpp::LoggingEvent::LoggingEvent
LoggingEvent(const std::string &category, const std::string &message, const std::string &ndc, Priority::Value priority)
Definition:
LoggingEvent.cpp:16
Threading.hh
log4cpp::LoggingEvent::ndc
const std::string ndc
Definition:
LoggingEvent.hh:64
log4cpp::LoggingEvent::categoryName
const std::string categoryName
Definition:
LoggingEvent.hh:58
log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:14:17