log.cc File Reference
#include "log.h"
Include dependency graph for log.cc:
Functions | |
bool | logHasLevel (int level) |
int | getLogLevel (void) |
void | setLogLevel (int level) |
void | logMsg (CString &msg, int level, ostream &out) |
void | logMsg (const char *msg, int level, ostream &out) |
void | logInfo (CString &msg, int level, ostream &out) |
void | logInfo (const char *msg, int level, ostream &out) |
void | logWarning (CString &msg, int level, ostream &out) |
void | logWarning (const char *msg, int level, ostream &out) |
void | logError (CString &msg, int level, ostream &out) |
void | logError (const char *msg, int level, ostream &out) |
Variables | |
static int | logLevel = 0 |
Function Documentation
|
getLogLevel () The function return the level used for logging messages. |
|
logError () Output the message to the stream out (default: clog) when the level is equal or larger then the logging level.The function preprends a "[ERROR] " string and ends the message with an end-of-line. |
|
logError () Output the message to the stream out (default: clog) when the level is equal or larger then the logging level.The function preprends a "[ERROR] " string and ends the message with an end-of-line. |
|
logHasLevel () The function returns 'true' if the current log level will log a message of the supplied level. |
|
logInfo () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. The function preprends a "[INFO] " string and ends the message with an end-of-line. |
|
logInfo () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. The function preprends a "[INFO] " string and ends the message with an end-of-line. |
|
logMsg () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. |
|
logMsg () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. |
|
logWarning () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. The function preprends a "[WARNING] " string and ends the message with an end-of-line. |
|
logWarning () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. The function preprends a "[WARNING] " string and ends the message with an end-of-line. |
|
setLogLevel () The function sets the level used for logging messages. |
Variable Documentation
|
logLevel Global indicating the level from which messages are outputted. |