Go to the source code of this file.
Classes | |
class | camitk::Log |
This class is a log utility. More... | |
Namespaces | |
camitk | |
Macros | |
#define | CAMITK_ERROR(MSG) CAMITK_LOG(camitk::InterfaceLogger::ERROR, MSG, this) |
Log for error verbosity (the minimum verbosity) Will always appear. More... | |
#define | CAMITK_ERROR_ALT(MSG) CAMITK_LOG_ALT(camitk::InterfaceLogger::ERROR, MSG) |
#define | CAMITK_ERROR_IF(COND, MSG) |
#define | CAMITK_ERROR_IF_ALT(COND, MSG) |
#define | CAMITK_INFO(MSG) CAMITK_LOG(camitk::InterfaceLogger::INFO, MSG, this) |
Log for info verbosity (the second most verbose one) The msg will appear only if the user asked for INFO verbosity. More... | |
#define | CAMITK_INFO_ALT(MSG) CAMITK_LOG_ALT(camitk::InterfaceLogger::INFO, MSG) |
#define | CAMITK_INFO_IF(COND, MSG) |
#define | CAMITK_INFO_IF_ALT(COND, MSG) |
#define | CAMITK_LOG(LEVEL, MSG, SENDER) camitk::Log::getLogger()->log(MSG, LEVEL, __FILE__, Q_FUNC_INFO, __LINE__, SENDER); |
Generic log macro (it is NOT recommended to use it directly...) More... | |
#define | CAMITK_LOG_ALT(LEVEL, MSG) camitk::Log::getLogger()->log(MSG, LEVEL, __FILE__, __func__, __LINE__); |
#define | CAMITK_PRINT_POINTER(PTR) (QString(#PTR) + QString("->[0x%1]").arg((quintptr)PTR, QT_POINTER_SIZE * 2, 16, QChar('0'))) |
Helper macro that produce a QString reprensenting a pointer. More... | |
#define | CAMITK_TRACE(MSG) CAMITK_LOG(camitk::InterfaceLogger::TRACE, MSG, this) |
Log for trace verbosity (the most verbose one, should be used for bug report) The msg will appear only if the user asked for TRACE verbosity. More... | |
#define | CAMITK_TRACE_ALT(MSG) CAMITK_LOG_ALT(camitk::InterfaceLogger::TRACE, MSG) |
#define | CAMITK_TRACE_IF(COND, MSG) |
The LOG_VERBOSITY_IF Macros are triggered only if the given condition is true. More... | |
#define | CAMITK_TRACE_IF_ALT(COND, MSG) |
#define | CAMITK_WARNING(MSG) CAMITK_LOG(camitk::InterfaceLogger::WARNING, MSG, this) |
Log for warning verbosity (the most common one) Will appear by default. More... | |
#define | CAMITK_WARNING_ALT(MSG) CAMITK_LOG_ALT(camitk::InterfaceLogger::WARNING, MSG) |
#define | CAMITK_WARNING_IF(COND, MSG) |
#define | CAMITK_WARNING_IF_ALT(COND, MSG) |
#define CAMITK_ERROR | ( | MSG | ) | CAMITK_LOG(camitk::InterfaceLogger::ERROR, MSG, this) |
Log for error verbosity (the minimum verbosity) Will always appear.
#define CAMITK_ERROR_ALT | ( | MSG | ) | CAMITK_LOG_ALT(camitk::InterfaceLogger::ERROR, MSG) |
#define CAMITK_ERROR_IF | ( | COND, | |
MSG | |||
) |
#define CAMITK_ERROR_IF_ALT | ( | COND, | |
MSG | |||
) |
#define CAMITK_INFO | ( | MSG | ) | CAMITK_LOG(camitk::InterfaceLogger::INFO, MSG, this) |
Log for info verbosity (the second most verbose one) The msg will appear only if the user asked for INFO verbosity.
#define CAMITK_INFO_ALT | ( | MSG | ) | CAMITK_LOG_ALT(camitk::InterfaceLogger::INFO, MSG) |
#define CAMITK_INFO_IF | ( | COND, | |
MSG | |||
) |
#define CAMITK_INFO_IF_ALT | ( | COND, | |
MSG | |||
) |
#define CAMITK_LOG | ( | LEVEL, | |
MSG, | |||
SENDER | |||
) | camitk::Log::getLogger()->log(MSG, LEVEL, __FILE__, Q_FUNC_INFO, __LINE__, SENDER); |
Generic log macro (it is NOT recommended to use it directly...)
#define CAMITK_LOG_ALT | ( | LEVEL, | |
MSG | |||
) | camitk::Log::getLogger()->log(MSG, LEVEL, __FILE__, __func__, __LINE__); |
#define CAMITK_PRINT_POINTER | ( | PTR | ) | (QString(#PTR) + QString("->[0x%1]").arg((quintptr)PTR, QT_POINTER_SIZE * 2, 16, QChar('0'))) |
Helper macro that produce a QString reprensenting a pointer.
#define CAMITK_TRACE | ( | MSG | ) | CAMITK_LOG(camitk::InterfaceLogger::TRACE, MSG, this) |
Log for trace verbosity (the most verbose one, should be used for bug report) The msg will appear only if the user asked for TRACE verbosity.
#define CAMITK_TRACE_ALT | ( | MSG | ) | CAMITK_LOG_ALT(camitk::InterfaceLogger::TRACE, MSG) |
#define CAMITK_TRACE_IF | ( | COND, | |
MSG | |||
) |
The LOG_VERBOSITY_IF Macros are triggered only if the given condition is true.
This allow to log only if something unexpected happens
#define CAMITK_TRACE_IF_ALT | ( | COND, | |
MSG | |||
) |
#define CAMITK_WARNING | ( | MSG | ) | CAMITK_LOG(camitk::InterfaceLogger::WARNING, MSG, this) |
Log for warning verbosity (the most common one) Will appear by default.
#define CAMITK_WARNING_ALT | ( | MSG | ) | CAMITK_LOG_ALT(camitk::InterfaceLogger::WARNING, MSG) |
#define CAMITK_WARNING_IF | ( | COND, | |
MSG | |||
) |
#define CAMITK_WARNING_IF_ALT | ( | COND, | |
MSG | |||
) |