Logo ROOT   6.16/01
Reference Guide
List of all members | Public Member Functions | Public Attributes | List of all members
ROOT::Experimental::TLogEntry Class Reference

A diagnostic, emitted by the TLogManager upon destruction of the TLogEntry.

One can construct a TLogEntry 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 135 of file TLogger.hxx.

Public Member Functions

 TLogEntry ()=default
 
 TLogEntry (ELogLevel level, std::string_view group)
 
 TLogEntry (ELogLevel level, std::string_view group, std::string_view filename, int line, std::string_view funcname)
 
 ~TLogEntry ()
 
TLogEntrySetFile (const std::string &file)
 
TLogEntrySetFunction (const std::string &func)
 
TLogEntrySetLine (int line)
 

Public Attributes

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

#include <ROOT/TLogger.hxx>

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

Constructor & Destructor Documentation

◆ TLogEntry() [1/3]

ROOT::Experimental::TLogEntry::TLogEntry ( )
default

◆ TLogEntry() [2/3]

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

Definition at line 145 of file TLogger.hxx.

◆ TLogEntry() [3/3]

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

Definition at line 146 of file TLogger.hxx.

◆ ~TLogEntry()

ROOT::Experimental::TLogEntry::~TLogEntry ( )
inline

Definition at line 166 of file TLogger.hxx.

Member Function Documentation

◆ SetFile()

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

Definition at line 150 of file TLogger.hxx.

◆ SetFunction()

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

Definition at line 155 of file TLogger.hxx.

◆ SetLine()

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

Definition at line 160 of file TLogger.hxx.

Member Data Documentation

◆ fFile

std::string ROOT::Experimental::TLogEntry::fFile

Definition at line 138 of file TLogger.hxx.

◆ fFuncName

std::string ROOT::Experimental::TLogEntry::fFuncName

Definition at line 139 of file TLogger.hxx.

◆ fGroup

std::string ROOT::Experimental::TLogEntry::fGroup

Definition at line 137 of file TLogger.hxx.

◆ fLevel

ELogLevel ROOT::Experimental::TLogEntry::fLevel

Definition at line 141 of file TLogger.hxx.

◆ fLine

int ROOT::Experimental::TLogEntry::fLine = 0

Definition at line 140 of file TLogger.hxx.

Libraries for ROOT::Experimental::TLogEntry:
[legend]

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