forked from orocos-toolchain/log4cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoggingEvent.cpp
More file actions
42 lines (37 loc) · 1.14 KB
/
LoggingEvent.cpp
File metadata and controls
42 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* LoggingEvent.cpp
*
* 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.
*/
#include "PortabilityImpl.hh"
#include <log4cpp/LoggingEvent.hh>
#include <log4cpp/threading/Threading.hh>
namespace log4cpp {
LoggingEvent::LoggingEvent(const std::string& categoryName,
const std::string& message,
const std::string& ndc,
Priority::Value priority) :
categoryName(categoryName),
message(message),
ndc(ndc),
priority(priority),
threadName(threading::getThreadId()) {
}
LoggingEvent::LoggingEvent(const std::string& categoryName,
const std::string& message,
const std::string& ndc,
Priority::Value priority,
const std::string& threadName,
TimeStamp& timeStamp) :
categoryName(categoryName),
message(message),
ndc(ndc),
priority(priority),
threadName(threadName),
timeStamp(timeStamp)
{
}
}