QualityControl
1.5.1
O2 Data Quality Control Framework
|
Singleton class that any class in the QC can use to log. More...
#include <QcInfoLogger.h>
Public Member Functions | |
void | setFacility (const std::string &facility) |
Static Public Member Functions | |
static QcInfoLogger & | GetInstance () |
Singleton class that any class in the QC can use to log.
The aim of this class is to avoid every class in the package to define and configure its own instance of InfoLogger. Independent InfoLogger instances can still be created when and if needed. Usage : QcInfoLogger::GetInstance() << "blabla" << infologger::endm; ILOG(Info) << "info message with implicit level Support" << ENDM; // short version ILOGI << "info message" << ENDM; // shorter ILOG_INST << InfoLogger::InfoLoggerMessageOption{ InfoLogger::Fatal, 1, 1, "asdf", 3 } << "fatal message with extra fields" << ENDM; // complex version ILOG(Info, Ops) << "Test message with severity Info and level Ops, see InfoLoggerMacros.hxx" << ENDM;