QualityControl  1.5.1
O2 Data Quality Control Framework
o2::quality_control::core::QcInfoLogger Class Reference

Singleton class that any class in the QC can use to log. More...

#include <QcInfoLogger.h>

Inheritance diagram for o2::quality_control::core::QcInfoLogger:
Collaboration diagram for o2::quality_control::core::QcInfoLogger:

Public Member Functions

void setFacility (const std::string &facility)

Static Public Member Functions

static QcInfoLoggerGetInstance ()

Detailed Description

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;

Barthelemy von Haller

The documentation for this class was generated from the following files: