This is a very simple logger class to control the logging of error messages.
More...
#include <Logger.h>
|
void | setLevel (int) |
|
void | log (const string &s, int severity) |
| Log message to standard output, based on severity. More...
|
|
void | log (const string &s, int severity, Packet &p) |
|
void | log (const string &s, int severity, CtlPkt &cp) |
|
|
void | logit (const string &s, int severity) |
| Log message to standard output, based on severity. More...
|
|
void | logit (const string &s, int severity, Packet &p) |
|
void | logit (const string &s, int severity, CtlPkt &cp) |
|
|
int | level |
| severity level: 0 thru 3
|
|
pthread_mutex_t | myLock |
| to make all method calls thread-safe
|
|
char * | tag [4] |
| text description of severity levels used in error messages
|
|
This is a very simple logger class to control the logging of error messages.
Definition at line 23 of file Logger.h.
void forest::Logger::log |
( |
const string & |
s, |
|
|
int |
severity |
|
) |
| |
|
inline |
Log message to standard output, based on severity.
- Parameters
-
s | is error message |
severity | is the severity level of the message |
p | is a reference to a packet whose contents is to be printed with the error message (optional argument) |
Definition at line 35 of file Logger.h.
void forest::Logger::logit |
( |
const string & |
s, |
|
|
int |
severity |
|
) |
| |
|
private |
Log message to standard output, based on severity.
- Parameters
-
s | is error message |
severity | is the severity level of the message |
p | is a reference to a packet whose contents is to be printed with the error message (optional argument) |
Definition at line 36 of file Logger.cpp.
The documentation for this class was generated from the following files: