TwiceAsNice
2019-02-18
|
A logger with compatibility to the format of syslogs. More...
#include <Logger.h>
Public Member Functions | |
SyslogFunction (const std::string &ident) | |
Ctor: Open a new log stream. More... | |
virtual void | log (const Nice::LoggerObject &o) |
Log a line compatible with the syslog format. More... | |
virtual | ~SyslogFunction () |
dtor. Closes the log stream. More... | |
SyslogFunction (const std::string &ident) | |
virtual void | log (const Nice::LoggerObject &o) |
virtual | ~SyslogFunction () |
![]() | |
LogFunctionBase () | |
virtual | ~LogFunctionBase () |
LogFunctionBase () | |
virtual | ~LogFunctionBase () |
Protected Member Functions | |
int | getSyslogLevel (const int &) |
Convert a Nice log level into one of the 5 standard system log levels. More... | |
bool | isDebugOrMoreVerboseLogLevelActivated () |
classify the current log level as debug or even more verbose. More... | |
int | getSyslogLevel (const int &) |
bool | isDebugOrMoreVerboseLogLevelActivated () |
Protected Attributes | |
LogFunctionBasePtr | m_previousLogFunction |
Private Attributes | |
std::string | m_ident |
Additional Inherited Members | |
![]() | |
::FILE * | m_file |
![]() | |
static const char * | typeStr [] |
static const char * | typeStrColor [] |
A logger with compatibility to the format of syslogs.
Nice::SyslogFunction::SyslogFunction | ( | const std::string & | ident | ) |
Ctor: Open a new log stream.
ident | The identity string that is written into each log line. |
|
virtual |
dtor. Closes the log stream.
Nice::SyslogFunction::SyslogFunction | ( | const std::string & | ident | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
classify the current log level as debug or even more verbose.
|
virtual |
Implements Nice::LogFunctionBase.
|
virtual |
Log a line compatible with the syslog format.
o | The information to be printed. |
Implements Nice::LogFunctionBase.
|
private |
|
protected |