 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
35 class InterfaceLogger;
204 static void setLogger(InterfaceLogger* logger);
207 static InterfaceLogger* getLogger();
216 static InterfaceLogger* applicationLogger;
220 #if !defined(CAMITK_DISABLE_LOG)
221 #define CAMITK_LOG(LEVEL,MSG,SENDER) camitk::Log::getLogger()->log(MSG, LEVEL, __FILE__, Q_FUNC_INFO, __LINE__, SENDER);
222 #define CAMITK_LOG_ALT(LEVEL,MSG) camitk::Log::getLogger()->log(MSG, LEVEL, __FILE__, __func__, __LINE__);
224 #define CAMITK_LOG(LEVEL,MSG,SENDER)
225 #define CAMITK_LOG_ALT(LEVEL,MSG)
230 #define CAMITK_TRACE(MSG) CAMITK_LOG(camitk::InterfaceLogger::TRACE, MSG, this)
231 #define CAMITK_TRACE_ALT(MSG) CAMITK_LOG_ALT(camitk::InterfaceLogger::TRACE, MSG)
235 #define CAMITK_INFO(MSG) CAMITK_LOG(camitk::InterfaceLogger::INFO, MSG, this)
236 #define CAMITK_INFO_ALT(MSG) CAMITK_LOG_ALT(camitk::InterfaceLogger::INFO, MSG)
240 #define CAMITK_WARNING(MSG) CAMITK_LOG(camitk::InterfaceLogger::WARNING, MSG, this)
241 #define CAMITK_WARNING_ALT(MSG) CAMITK_LOG_ALT(camitk::InterfaceLogger::WARNING, MSG)
246 #define CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD ERROR
250 #define CAMITK_ERROR(MSG) CAMITK_LOG(camitk::InterfaceLogger::ERROR, MSG, this)
251 #define CAMITK_ERROR_ALT(MSG) CAMITK_LOG_ALT(camitk::InterfaceLogger::ERROR, MSG)
253 #ifdef CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD
254 #define ERROR CAMITK_WINDOWS_SYSTEM_ERROR_SAFEGUARD
259 #define CAMITK_TRACE_IF(COND, MSG) \
266 #define CAMITK_TRACE_IF_ALT(COND, MSG) \
269 CAMITK_TRACE_ALT(MSG) \
273 #define CAMITK_INFO_IF(COND, MSG) \
280 #define CAMITK_INFO_IF_ALT(COND, MSG) \
283 CAMITK_INFO_ALT(MSG) \
287 #define CAMITK_WARNING_IF(COND, MSG) \
290 CAMITK_WARNING(MSG) \
294 #define CAMITK_WARNING_IF_ALT(COND, MSG) \
297 CAMITK_WARNING_ALT(MSG) \
301 #define CAMITK_ERROR_IF(COND, MSG) \
308 #define CAMITK_ERROR_IF_ALT(COND, MSG) \
311 CAMITK_ERROR_ALT(MSG) \
@ NONE
No message is logged.
Definition: InterfaceLogger.h:61
static void setLogger(InterfaceLogger *logger)
set the application logger and delete the previous logger Call this method transfers the logger insta...
Definition: Log.cpp:59
@ ERROR
Only error messages are logged.
Definition: InterfaceLogger.h:62
static InterfaceLogger * getLogger()
get the current application logger
Definition: Log.cpp:73
@ INFO
information, warning and error messages are logged
Definition: InterfaceLogger.h:64
LogLevel
Definition: InterfaceLogger.h:60
static InterfaceLogger::LogLevel getLevelFromString(QString levelString)
get the enum value from the text
Definition: Log.cpp:109
@ WARNING
Only Warning and Error messages are logged.
Definition: InterfaceLogger.h:63
static QString getLevelAsString(InterfaceLogger::LogLevel level)
get the enum value as a text
Definition: Log.cpp:82
@ TRACE
all types of messages are logged
Definition: InterfaceLogger.h:65
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:36
static InterfaceLogger * applicationLogger
Global Logger manager.
Definition: Log.h:239