Tellurium Plugin C API  1.0.0
Plugin Framework for Tellurium
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
telplugins_logging_api.h
1 
42 #ifndef telplugins_logging_apiH
43 #define telplugins_logging_apiH
44 #include "telplugins_exporter.h"
45 #include "telplugins_types.h"
46 //---------------------------------------------------------------------------
47 
48 #if defined(__cplusplus)
49 extern "C" {
50 #endif
51 
55 enum CLogLevel
56  {
57  CL_PRIO_CURRENT = 0,
58  CL_PRIO_FATAL,
59  CL_PRIO_CRITICAL,
60  CL_PRIO_ERROR,
61  CL_PRIO_WARNING,
62  CL_PRIO_NOTICE,
63  CL_PRIO_INFORMATION,
64  CL_PRIO_DEBUG,
65  CL_PRIO_TRACE
66  };
67 
68 enum
69 {
70  clError = CL_PRIO_ERROR,
71  clInfo = CL_PRIO_INFORMATION,
72  clDebug = CL_PRIO_DEBUG,
73  clWarning = CL_PRIO_WARNING
74 };
75 
81 TLP_C_DS bool tlp_cc tpEnableLoggingToConsole(void);
82 
88 TLP_C_DS bool tlp_cc tpDisableLoggingToConsole(void);
89 
95 TLP_C_DS bool tlp_cc tpEnableLoggingToFile(char* fName);
96 
102 TLP_C_DS bool tlp_cc tpDisableLoggingToFile();
103 
119 TLP_C_DS bool tlp_cc tpSetLogLevel(const char* lvl);
120 
134 TLP_C_DS char* tlp_cc tpGetLogLevel(void);
135 
144 TLP_C_DS char* tlp_cc tpGetLogFileName(void);
145 
152 TLP_C_DS void tlp_cc tpLogMsg(enum CLogLevel lvl, const char* msg);
153 
154 
155 #if defined(__cplusplus)
156 }
157 #endif
158 
159 #endif
160