16 #ifndef QC_CORE_QCINFOLOGGER_H 17 #define QC_CORE_QCINFOLOGGER_H 19 #include <InfoLogger/InfoLogger.hxx> 20 #include <InfoLogger/InfoLoggerMacros.hxx> 23 typedef AliceO2::InfoLogger::InfoLoggerContext infoContext;
52 void setFacility(
const std::string& facility);
66 #define ILOG_INST o2::quality_control::core::QcInfoLogger::GetInstance() 67 #define ILOGI ILOG_INST << AliceO2::InfoLogger::InfoLogger::Info 68 #define ILOGW ILOG_INST << AliceO2::InfoLogger::InfoLogger::Warning 69 #define ILOGE ILOG_INST << AliceO2::InfoLogger::InfoLogger::Error 70 #define ILOGF ILOG_INST << AliceO2::InfoLogger::InfoLogger::Fatal 71 #define ENDM AliceO2::InfoLogger::InfoLogger::endm; 73 #define NUM_ARGS_(_1, _2, _3, _4, _5, _6, _7, _8, TOTAL, ...) TOTAL 74 #define NUM_ARGS(...) NUM_ARGS_(__VA_ARGS__, 6, 5, 4, 3, 2, 1, 0) 75 #define CONCATENATE(X, Y) X##Y 76 #define CONCATE(MACRO, NUMBER) CONCATENATE(MACRO, NUMBER) 77 #define VA_MACRO(MACRO, ...) \ 78 CONCATE(MACRO, NUM_ARGS(__VA_ARGS__)) \ 81 #define ILOG(...) VA_MACRO(ILOG, void, void, __VA_ARGS__) 85 ILOG_INST << AliceO2::InfoLogger::InfoLogger::InfoLoggerMessageOption { AliceO2::InfoLogger::InfoLogger::Severity::Info, AliceO2::InfoLogger::InfoLogger::Level::Support, AliceO2::InfoLogger::InfoLogger::undefinedMessageOption.errorCode, __FILE__, __LINE__ } 86 #define ILOG1(s, t, severity) \ 87 ILOG_INST << AliceO2::InfoLogger::InfoLogger::InfoLoggerMessageOption { AliceO2::InfoLogger::InfoLogger::Severity::severity, AliceO2::InfoLogger::InfoLogger::Level::Support, AliceO2::InfoLogger::InfoLogger::undefinedMessageOption.errorCode, __FILE__, __LINE__ } 88 #define ILOG2(s, t, severity, level) \ 89 ILOG_INST << AliceO2::InfoLogger::InfoLogger::InfoLoggerMessageOption { AliceO2::InfoLogger::InfoLogger::Severity::severity, AliceO2::InfoLogger::InfoLogger::Level::level, AliceO2::InfoLogger::InfoLogger::undefinedMessageOption.errorCode, __FILE__, __LINE__ } 91 #endif // QC_CORE_QCINFOLOGGER_H
These methods can be used to build a complex processing topology. It spawns 3 separate dummy processi...
Definition: Activity.h:19
Singleton class that any class in the QC can use to log.
Definition: QcInfoLogger.h:41