log.h File Reference
#include "../string/cstring.h"
#include "../basic_types.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:
Functions | |
bool | logHasLevel (int level=0) |
int | getLogLevel (void) |
void | setLogLevel (int level) |
void | logMsg (CString &msg, int level=0, ostream &out=cerr) |
void | logMsg (const char *msg, int level=0, ostream &out=cerr) |
void | logInfo (CString &msg, int level=0, ostream &out=cerr) |
void | logInfo (const char *msg, int level=0, ostream &out=cerr) |
void | logWarning (CString &msg, int level=0, ostream &out=cerr) |
void | logWarning (const char *msg, int level=0, ostream &out=cerr) |
void | logError (CString &msg, int level=0, ostream &out=cerr) |
void | logError (const char *msg, int level=0, ostream &out=cerr) |
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. |