libRoadRunner C API  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Logging functionality

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...
 

Detailed Description

RoadRunners logging routines.

Function Documentation

bool disableLoggingToConsole ( void  )

Disable logging to console.

Returns
Returns true if succesful, false otherwise
bool disableLoggingToFile ( )

Disable logging to logFile.

Returns
Returns true if succesful, false otherwise
bool enableLoggingToConsole ( void  )

Enable logging to console.

Returns
Returns true if succesful, false otherwise
bool enableLoggingToFile ( RRHandle  handle)

Enable logging to logFile.

Returns
Returns true if succesful, false otherwise
char* getLogFileName ( void  )

Get a pointer to the string that holds the logging file name path.

Example: str = getLogFileName (void)

Returns
Returns null if it fails otherwise returns the full path to the logging file name
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:

str = getLogLevel (void)
Returns
Returns null if it fails else returns a pointer to the logging string
void logMsg ( enum CLogLevel  lvl,
const char *  msg 
)

Create a log message.

Parameters
lvlLoglevel for message
msgLog 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:

setLogLevel ("DEBUG4")

Wiil show log messages with levels DEBUG4, DEBUG3 -> Error

Parameters
lvlPointer to the logging level string.
Returns
Returns true if succesful