libRoadRunner C API
1.0.0
|
RoadRunners logging routines. More...
Functions | |
bool | enableLoggingToConsole (void) |
Enable logging to console. More... | |
bool | disableLoggingToConsole (void) |
Disable logging to console. More... | |
bool | enableLoggingToFile (RRHandle handle) |
Enable logging to logFile. More... | |
bool | disableLoggingToFile () |
Disable logging to logFile. More... | |
bool | setLogLevel (const char *lvl) |
Set the logging status level The logging level is determined by the following strings. More... | |
char * | getLogLevel (void) |
Get the logging status level as a pointer to a string. More... | |
char * | getLogFileName (void) |
Get a pointer to the string that holds the logging file name path. More... | |
void | logMsg (enum CLogLevel lvl, const char *msg) |
Create a log message. More... | |
RoadRunners logging routines.
bool disableLoggingToConsole | ( | void | ) |
Disable logging to console.
bool disableLoggingToFile | ( | ) |
Disable logging to logFile.
bool enableLoggingToConsole | ( | void | ) |
Enable logging to console.
bool enableLoggingToFile | ( | RRHandle | handle | ) |
Enable logging to logFile.
char* getLogFileName | ( | void | ) |
Get a pointer to the string that holds the logging file name path.
Example: str = getLogFileName (void)
char* getLogLevel | ( | void | ) |
Get the logging status level as a pointer to a string.
The logging level can be one of the following strings
"ANY", "DEBUG5", "DEBUG4", "DEBUG3", "DEBUG2", "DEBUG1", "DEBUG", "INFO", "WARNING", "ERROR"
Example:
void logMsg | ( | enum CLogLevel | lvl, |
const char * | msg | ||
) |
Create a log message.
lvl | Loglevel for message |
msg | Log message |
bool setLogLevel | ( | const char * | lvl | ) |
Set the logging status level The logging level is determined by the following strings.
"ANY", "DEBUG5", "DEBUG4", "DEBUG3", "DEBUG2", "DEBUG1", "DEBUG", "INFO", "WARNING", "ERROR"
Example:
Wiil show log messages with levels DEBUG4, DEBUG3 -> Error
lvl | Pointer to the logging level string. |