CARMA C++
|
Syslog layout class for CARMA logging. More...
#include <carma/util/Logger.h>
Inherits Layout.
Public Member Functions | |
virtual std::string | format (const log4cpp::LoggingEvent &event) |
Formats the LoggingEvent in SyslogLayout style: "Time Identity: {Year} {Priority} {Category} {Nested Diagnostic Context} {Message}", where Time is the timestamp added by the Linux syslog daemon, Year is the current year, needed because syslog does not include year in its timestamp. More... | |
SyslogLayout () | |
Default constructor for SyslogLayout. More... | |
virtual | ~SyslogLayout () |
Destructor for SyslogLayout. More... | |
carma::util::SyslogLayout::SyslogLayout | ( | ) |
Default constructor for SyslogLayout.
|
virtual |
Destructor for SyslogLayout.
|
virtual |
Formats the LoggingEvent in SyslogLayout style:
"Time Identity: {Year} {Priority} {Category} {Nested Diagnostic Context} {Message}", where
Time is the timestamp added by the Linux syslog daemon,
Year is the current year, needed because syslog does not include year in its timestamp.
Identity is the parameter passed to getSysLogger(),
Nested Diagnostic Context is a context specific message,
Priority corresponds to the priority levels used by syslog(3)
event | The Logging Event generated by the Category method which passed the original log message. |