|
#define | _cmnLogger_h |
|
#define | BYPASS_CMN_LOG |
|
#define | CMN_LOG_CLASS_INSTANCE(objectPointer, lod) std::cout |
|
#define | CMN_LOG_CLASS(lod) CMN_LOG_CLASS_INSTANCE(this, lod) |
|
#define | CMN_LOG(lod) std::cout |
|
#define | CMN_LOG_DETAILS "File: " << cmnLogger::ExtractFileName(__FILE__) << " Line: " << __LINE__ << " - " |
|
|
#define | CMN_LOG_CLASS_INSTANCE_INIT_ERROR(objectPointer) CMN_LOG_CLASS_INSTANCE(objectPointer, CMN_LOG_LEVEL_INIT_ERROR) << CMN_LOG_DETAILS << " " |
|
#define | CMN_LOG_CLASS_INSTANCE_INIT_WARNING(objectPointer) CMN_LOG_CLASS_INSTANCE(objectPointer, CMN_LOG_LEVEL_INIT_WARNING) |
|
#define | CMN_LOG_CLASS_INSTANCE_INIT_VERBOSE(objectPointer) CMN_LOG_CLASS_INSTANCE(objectPointer, CMN_LOG_LEVEL_INIT_VERBOSE) |
|
#define | CMN_LOG_CLASS_INSTANCE_INIT_DEBUG(objectPointer) CMN_LOG_CLASS_INSTANCE(objectPointer, CMN_LOG_LEVEL_INIT_DEBUG) |
|
#define | CMN_LOG_CLASS_INSTANCE_RUN_ERROR(objectPointer) CMN_LOG_CLASS_INSTANCE(objectPointer, CMN_LOG_LEVEL_RUN_ERROR) << CMN_LOG_DETAILS << " " |
|
#define | CMN_LOG_CLASS_INSTANCE_RUN_WARNING(objectPointer) CMN_LOG_CLASS_INSTANCE(objectPointer, CMN_LOG_LEVEL_RUN_WARNING) |
|
#define | CMN_LOG_CLASS_INSTANCE_RUN_VERBOSE(objectPointer) CMN_LOG_CLASS_INSTANCE(objectPointer, CMN_LOG_LEVEL_RUN_VERBOSE) |
|
#define | CMN_LOG_CLASS_INSTANCE_RUN_DEBUG(objectPointer) CMN_LOG_CLASS_INSTANCE(objectPointer, CMN_LOG_LEVEL_RUN_DEBUG) |
|
|
#define | CMN_LOG_CLASS_INIT_ERROR CMN_LOG_CLASS(CMN_LOG_LEVEL_INIT_ERROR) << CMN_LOG_DETAILS << " " |
|
#define | CMN_LOG_CLASS_INIT_WARNING CMN_LOG_CLASS(CMN_LOG_LEVEL_INIT_WARNING) |
|
#define | CMN_LOG_CLASS_INIT_VERBOSE CMN_LOG_CLASS(CMN_LOG_LEVEL_INIT_VERBOSE) |
|
#define | CMN_LOG_CLASS_INIT_DEBUG CMN_LOG_CLASS(CMN_LOG_LEVEL_INIT_DEBUG) |
|
#define | CMN_LOG_CLASS_RUN_ERROR CMN_LOG_CLASS(CMN_LOG_LEVEL_RUN_ERROR) << CMN_LOG_DETAILS << " " |
|
#define | CMN_LOG_CLASS_RUN_WARNING CMN_LOG_CLASS(CMN_LOG_LEVEL_RUN_WARNING) |
|
#define | CMN_LOG_CLASS_RUN_VERBOSE CMN_LOG_CLASS(CMN_LOG_LEVEL_RUN_VERBOSE) |
|
#define | CMN_LOG_CLASS_RUN_DEBUG CMN_LOG_CLASS(CMN_LOG_LEVEL_RUN_DEBUG) |
|
|
#define | CMN_LOG_INIT_ERROR CMN_LOG(CMN_LOG_LEVEL_INIT_ERROR) << CMN_LOG_DETAILS << " " |
|
#define | CMN_LOG_INIT_WARNING CMN_LOG(CMN_LOG_LEVEL_INIT_WARNING) |
|
#define | CMN_LOG_INIT_VERBOSE CMN_LOG(CMN_LOG_LEVEL_INIT_VERBOSE) |
|
#define | CMN_LOG_INIT_DEBUG CMN_LOG(CMN_LOG_LEVEL_INIT_DEBUG) |
|
#define | CMN_LOG_RUN_ERROR CMN_LOG(CMN_LOG_LEVEL_RUN_ERROR) << CMN_LOG_DETAILS << " " |
|
#define | CMN_LOG_RUN_WARNING CMN_LOG(CMN_LOG_LEVEL_RUN_WARNING) |
|
#define | CMN_LOG_RUN_VERBOSE CMN_LOG(CMN_LOG_LEVEL_RUN_VERBOSE) |
|
#define | CMN_LOG_RUN_DEBUG CMN_LOG(CMN_LOG_LEVEL_RUN_DEBUG) |
|
Declaration of cmnLogger amd macros for human readable logging.
#define CMN_LOG |
( |
|
lod | ) |
std::cout |
This macro is used to log human readable information within the scope of a global function (e.g. main()). It can also be used in classes which are not registered in cmnClassRegister (see also macros CMN_DECLARE_SERVICES and CMN_IMPLEMENT_SERVICES declared in cmnClassRegister.h). For a registered class, please use CMN_LOG_CLASS.
The message is streamed along with a Level of Detail to cmnLogger provided that the function and overall log masks allow the level of detail associated to the message. The overall mask can be set using cmnLogger::SetMask. The function mask can be set using cmnLogger::SetMaskFunction.
The macro creates an output stream if the level of detail of the message satisfies the criterion defined above. It can be used as any other output stream:
CMN_LOG_INIT_ERROR <<
"This is a message of LoD CMN_LOG_LEVEL_INIT_ERROR" << argc << std::endl;
- Parameters
-
lod | The log level of detail of the message. |