libroadrunner C API
|
RoadRunner logging routines. More...
Functions | |
C_DECL_SPEC bool rrcCallConv | enableLoggingToConsole (void) |
Enable logging to console. More... | |
C_DECL_SPEC bool rrcCallConv | disableLoggingToConsole (void) |
Disable logging to console. More... | |
C_DECL_SPEC bool rrcCallConv | enableLoggingToFile () |
Enable logging to logFile. More... | |
C_DECL_SPEC bool rrcCallConv | enableLoggingToFileWithPath (const char *path) |
Enable logging to a log file with the specified path. More... | |
C_DECL_SPEC bool rrcCallConv | disableLoggingToFile () |
Disable logging to logFile. More... | |
C_DECL_SPEC bool rrcCallConv | setLogLevel (const char *lvl) |
Set the logging status level The logging level is determined by the following strings. More... | |
C_DECL_SPEC char *rrcCallConv | getLogLevel (void) |
Get the logging status level as a pointer to a string. More... | |
C_DECL_SPEC char *rrcCallConv | getLogFileName (void) |
Get a pointer to the string that holds the logging file name path. More... | |
C_DECL_SPEC void rrcCallConv | logMsg (enum CLogLevel lvl, const char *msg) |
Create a log message. More... | |
RoadRunner logging routines.
C_DECL_SPEC bool rrcCallConv disableLoggingToConsole | ( | void | ) |
Disable logging to console.
C_DECL_SPEC bool rrcCallConv disableLoggingToFile | ( | ) |
Disable logging to logFile.
C_DECL_SPEC bool rrcCallConv enableLoggingToConsole | ( | void | ) |
Enable logging to console.
C_DECL_SPEC bool rrcCallConv enableLoggingToFile | ( | ) |
Enable logging to logFile.
C_DECL_SPEC bool rrcCallConv enableLoggingToFileWithPath | ( | const char * | path | ) |
Enable logging to a log file with the specified path.
C_DECL_SPEC char* rrcCallConv getLogFileName | ( | void | ) |
Get a pointer to the string that holds the logging file name path.
Example: str = getLogFileName (void)
C_DECL_SPEC char* rrcCallConv 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:
C_DECL_SPEC void rrcCallConv logMsg | ( | enum CLogLevel | lvl, |
const char * | msg | ||
) |
Create a log message.
lvl | Loglevel for message |
msg | Log message |
C_DECL_SPEC bool rrcCallConv 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:
Will show log messages with levels DEBUG4, DEBUG3 -> Error
lvl | Pointer to the logging level string. |