Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | Public Attributes | List of all members
ROOT::Experimental::RLogEntry Class Reference

A diagnostic, emitted by the RLogManager upon destruction of the RLogEntry.

One can construct a RLogEntry through the utility preprocessor macros R__ERROR_HERE, R__WARNING_HERE etc like this: R__INFO_HERE("CodeGroupForInstanceLibrary") << "All we know is " << 42; This will automatically capture the current class and function name, the file and line number.

Definition at line 136 of file RLogger.hxx.

Public Member Functions

 RLogEntry ()=default
 
 RLogEntry (ELogLevel level, std::string_view group)
 
 RLogEntry (ELogLevel level, std::string_view group, std::string_view filename, int line, std::string_view funcname)
 
 ~RLogEntry ()
 
RLogEntrySetFile (const std::string &file)
 
RLogEntrySetFunction (const std::string &func)
 
RLogEntrySetLine (int line)
 

Public Attributes

std::string fFile
 
std::string fFuncName
 
std::string fGroup
 
ELogLevel fLevel
 
int fLine = 0
 

#include <ROOT/RLogger.hxx>

Inheritance diagram for ROOT::Experimental::RLogEntry:
[legend]

Constructor & Destructor Documentation

◆ RLogEntry() [1/3]

ROOT::Experimental::RLogEntry::RLogEntry ( )
default

◆ RLogEntry() [2/3]

ROOT::Experimental::RLogEntry::RLogEntry ( ELogLevel  level,
std::string_view  group 
)
inline

Definition at line 146 of file RLogger.hxx.

◆ RLogEntry() [3/3]

ROOT::Experimental::RLogEntry::RLogEntry ( ELogLevel  level,
std::string_view  group,
std::string_view  filename,
int  line,
std::string_view  funcname 
)
inline

Definition at line 147 of file RLogger.hxx.

◆ ~RLogEntry()

ROOT::Experimental::RLogEntry::~RLogEntry ( )
inline

Definition at line 167 of file RLogger.hxx.

Member Function Documentation

◆ SetFile()

RLogEntry & ROOT::Experimental::RLogEntry::SetFile ( const std::string &  file)
inline

Definition at line 151 of file RLogger.hxx.

◆ SetFunction()

RLogEntry & ROOT::Experimental::RLogEntry::SetFunction ( const std::string &  func)
inline

Definition at line 156 of file RLogger.hxx.

◆ SetLine()

RLogEntry & ROOT::Experimental::RLogEntry::SetLine ( int  line)
inline

Definition at line 161 of file RLogger.hxx.

Member Data Documentation

◆ fFile

std::string ROOT::Experimental::RLogEntry::fFile

Definition at line 139 of file RLogger.hxx.

◆ fFuncName

std::string ROOT::Experimental::RLogEntry::fFuncName

Definition at line 140 of file RLogger.hxx.

◆ fGroup

std::string ROOT::Experimental::RLogEntry::fGroup

Definition at line 138 of file RLogger.hxx.

◆ fLevel

ELogLevel ROOT::Experimental::RLogEntry::fLevel

Definition at line 142 of file RLogger.hxx.

◆ fLine

int ROOT::Experimental::RLogEntry::fLine = 0

Definition at line 141 of file RLogger.hxx.


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