libRoadRunner C API  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
rrc_logging_api.h
Go to the documentation of this file.
1 
42 #ifndef rrc_logging_apiH
43 #define rrc_logging_apiH
44 #include "rrc_exporter.h"
45 #include "rrc_types.h"
46 //---------------------------------------------------------------------------
47 
48 #if defined(__cplusplus)
49 namespace rrc
50 {
51 extern "C"
52 {
53 #endif
54 
59  {
60  CL_PRIO_CURRENT = 0,
69  };
70 
71 enum
72 {
73  clError = CL_PRIO_ERROR,
74  clInfo = CL_PRIO_INFORMATION,
75  clDebug = CL_PRIO_DEBUG,
76  clWarning = CL_PRIO_WARNING
77 };
83 C_DECL_SPEC bool rrcCallConv enableLoggingToConsole(void);
84 
90 C_DECL_SPEC bool rrcCallConv disableLoggingToConsole(void);
91 
97 C_DECL_SPEC bool rrcCallConv enableLoggingToFile(RRHandle handle);
98 
104 C_DECL_SPEC bool rrcCallConv disableLoggingToFile();
105 
121 C_DECL_SPEC bool rrcCallConv setLogLevel(const char* lvl);
122 
136 C_DECL_SPEC char* rrcCallConv getLogLevel(void);
137 
146 C_DECL_SPEC char* rrcCallConv getLogFileName(void);
147 
148 C_DECL_SPEC void rrcCallConv logMsg(enum CLogLevel lvl, const char* msg);
155 
156 
157 #if defined(__cplusplus)
158 } //Extern "C"
159 
160 } //rrc namespace
161 #endif
162 
163 #endif
164 
An informational message, usually denoting the successful completion of an operation.
Definition: rrc_logging_api.h:67
Use the current level – don't change the level from what it is.
Definition: rrc_logging_api.h:61
CLogLevel
Log level enum.
Definition: rrc_logging_api.h:58
roadRunner C API 2012
bool enableLoggingToConsole(void)
Enable logging to console.
Definition: rrc_logging_api.cpp:15
bool disableLoggingToFile()
Disable logging to logFile.
Definition: rrc_logging_api.cpp:43
bool enableLoggingToFile(RRHandle handle)
Enable logging to logFile.
Definition: rrc_logging_api.cpp:31
void logMsg(enum CLogLevel lvl, const char *msg)
Create a log message.
Definition: rrc_logging_api.cpp:76
A warning. An operation completed with an unexpected result.
Definition: rrc_logging_api.h:65
bool setLogLevel(const char *lvl)
Set the logging status level The logging level is determined by the following strings.
Definition: rrc_logging_api.cpp:51
void * RRHandle
Void pointer to a RoadRunner instance.
Definition: rrc_types.h:50
bool disableLoggingToConsole(void)
Disable logging to console.
Definition: rrc_logging_api.cpp:23
An error. An operation did not complete successfully, but the application as a whole is not affected...
Definition: rrc_logging_api.h:64
A critical error. The application might not be able to continue running successfully.
Definition: rrc_logging_api.h:63
A fatal error. The application will most likely terminate. This is the highest priority.
Definition: rrc_logging_api.h:62
char * getLogLevel(void)
Get the logging status level as a pointer to a string.
Definition: rrc_logging_api.cpp:60
char * getLogFileName(void)
Get a pointer to the string that holds the logging file name path.
Definition: rrc_logging_api.cpp:69
A notice, which is an information with just a higher priority.
Definition: rrc_logging_api.h:66
roadRunner C API 2012
A debugging message.
Definition: rrc_logging_api.h:68