libRoadRunner C API  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules 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();
98 
104 C_DECL_SPEC bool rrcCallConv enableLoggingToFileWithPath(const char* path);
105 
111 C_DECL_SPEC bool rrcCallConv disableLoggingToFile();
112 
128 C_DECL_SPEC bool rrcCallConv setLogLevel(const char* lvl);
129 
143 C_DECL_SPEC char* rrcCallConv getLogLevel(void);
144 
153 C_DECL_SPEC char* rrcCallConv getLogFileName(void);
154 
155 C_DECL_SPEC void rrcCallConv logMsg(enum CLogLevel lvl, const char* msg);
162 
163 
164 #if defined(__cplusplus)
165 } //Extern "C"
166 
167 } //rrc namespace
168 #endif
169 
170 #endif
171 
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
bool enableLoggingToFileWithPath(const char *path)
Enable logging to a log file with the specified path.
Definition: rrc_logging_api.cpp:39
CLogLevel
Log level enum.
Definition: rrc_logging_api.h:58
Definition: _rrc_api.cpp:84
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:47
void logMsg(enum CLogLevel lvl, const char *msg)
Create a log message.
Definition: rrc_logging_api.cpp:80
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:55
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
bool enableLoggingToFile()
Enable logging to logFile.
Definition: rrc_logging_api.cpp:31
char * getLogLevel(void)
Get the logging status level as a pointer to a string.
Definition: rrc_logging_api.cpp:64
char * getLogFileName(void)
Get a pointer to the string that holds the logging file name path.
Definition: rrc_logging_api.cpp:73
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