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>
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 
29  const std::string& message,
30  const std::string& ndc,
32  const std::string& threadName,
34  categoryName(categoryName),
35  message(message),
36  ndc(ndc),
37  priority(priority),
38  threadName(threadName),
39  timeStamp(timeStamp)
40  {
41  }
42 }
const std::string message
Definition: LoggingEvent.hh:61
static std::string getThreadId()
Definition: BoostThreads.hh:22
Priority::Value priority
Definition: LoggingEvent.hh:67
const std::string threadName
Definition: LoggingEvent.hh:72
LoggingEvent(const std::string &category, const std::string &message, const std::string &ndc, Priority::Value priority)
const std::string ndc
Definition: LoggingEvent.hh:64
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