1 #include "LoggingEvent.hpp" 2 #include <log4cpp/Priority.hh> 3 #include <log4cpp/threading/Threading.hh> 11 LoggingEvent::LoggingEvent() :
15 priority(
log4cpp::Priority::NOTSET),
22 categoryName(toCopy.categoryName),
23 message(toCopy.message),
25 priority(toCopy.priority),
26 threadName(toCopy.threadName),
27 timeStamp(toCopy.timeStamp)
32 const rt_string& message,
34 log4cpp::Priority::Value priority) :
35 categoryName(categoryName),
43 threadName = log4cpp::threading::getThreadId(&buffer[0]);
50 categoryName = rhs.categoryName;
51 message = rhs.message;
53 priority = rhs.priority;
54 threadName = rhs.threadName;
55 timeStamp = rhs.timeStamp;
60 LoggingEvent::~LoggingEvent()
66 return log4cpp::LoggingEvent(makeString(this->categoryName),
67 makeString(this->message),
68 makeString(this->ndc),
70 makeString(this->threadName),
A mirror of log4cpp::LoggingEvent, except using real-time capable strings.
The Orocos Component Library.
log4cpp::LoggingEvent toLog4cpp()
Convert to log4cpp class.
LoggingEvent()
Create with empty values.