Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::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:364
RLogChannel & HistLog()
Log channel for Hist diagnostics.
Definition RAxis.cxx:25
ROOT::Experimental::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 213 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::Experimental::Detail::RLogBuilder:
[legend]

Constructor & Destructor Documentation

◆ RLogBuilder() [1/2]

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

Definition at line 218 of file RLogger.hxx.

◆ RLogBuilder() [2/2]

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

Definition at line 219 of file RLogger.hxx.

◆ ~RLogBuilder()

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

Emit the log entry through the static log manager.

Definition at line 226 of file RLogger.hxx.

Member Data Documentation

◆ fEntry

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

The log entry to be built.

Definition at line 215 of file RLogger.hxx.

Libraries for ROOT::Experimental::Detail::RLogBuilder:

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