Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Detail::RLogBuilder Class Reference

Builds a diagnostic entry, emitted by the static RLogManager upon destruction of this builder, where - by definition - the RLogEntry has been completely built.

This builder can be used through the utility preprocessor macros R__LOG_ERROR, R__LOG_WARNING etc like this:

R__LOG_INFO(ROOT::Experimental::HistLog()) << "all we know is " << 42;
const int decreasedInfoLevel = 5;
R__LOG_XDEBUG(ROOT::WebGUILog(), decreasedInfoLevel) << "nitty-gritty details";
#define R__LOG_INFO(...)
Definition RLogger.hxx:358
ROOT::RLogChannel & WebGUILog()
Log channel for WebGUI diagnostics.

This will automatically capture the current class and function name, the file and line number.

Definition at line 209 of file RLogger.hxx.

Public Member Functions

 RLogBuilder (ELogLevel level, RLogChannel &channel)
 RLogBuilder (ELogLevel level, RLogChannel &channel, const std::string &filename, int line, const std::string &funcname)
 ~RLogBuilder ()
 Emit the log entry through the static log manager.

Private Attributes

RLogEntry fEntry
 The log entry to be built.

#include <ROOT/RLogger.hxx>

Inheritance diagram for ROOT::Detail::RLogBuilder:

Constructor & Destructor Documentation

◆ RLogBuilder() [1/2]

ROOT::Detail::RLogBuilder::RLogBuilder ( ELogLevel level,
RLogChannel & channel )
inline

Definition at line 214 of file RLogger.hxx.

◆ RLogBuilder() [2/2]

ROOT::Detail::RLogBuilder::RLogBuilder ( ELogLevel level,
RLogChannel & channel,
const std::string & filename,
int line,
const std::string & funcname )
inline

Definition at line 215 of file RLogger.hxx.

◆ ~RLogBuilder()

ROOT::Detail::RLogBuilder::~RLogBuilder ( )
inline

Emit the log entry through the static log manager.

Definition at line 222 of file RLogger.hxx.

Member Data Documentation

◆ fEntry

RLogEntry ROOT::Detail::RLogBuilder::fEntry
private

The log entry to be built.

Definition at line 211 of file RLogger.hxx.


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