Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::RLogChannel Class Reference

A log configuration for a channel, e.g.

"RHist". Each ROOT module has its own log, with potentially distinct verbosity.

Definition at line 97 of file RLogger.hxx.

Public Member Functions

 RLogChannel ()=default
 Construct an anonymous channel.
 RLogChannel (const std::string &name)
 Construct a log channel given its name, which is part of the diagnostics.
 RLogChannel (ELogLevel verbosity)
 Construct an anonymous channel with a default verbosity.
ELogLevel GetEffectiveVerbosity (const RLogManager &mgr) const
const std::string & GetName () const
long long GetNumErrors () const
 Returns the current number of errors.
long long GetNumFatalErrors () const
 Returns the current number of fatal errors.
long long GetNumWarnings () const
 Number of fatal errors.
ELogLevel GetVerbosity () const
void Increment (ELogLevel severity)
 Increase warning or error count.
ELogLevel SetVerbosity (ELogLevel verbosity)

Protected Attributes

std::atomic< long long > fNumErrors {0ll}
 Number of warnings.
std::atomic< long long > fNumFatalErrors {0ll}
 Number of errors.
std::atomic< long long > fNumWarnings {0ll}

Private Attributes

std::string fName
 Name as shown in diagnostics.
ELogLevel fVerbosity = ELogLevel::kUnset
 Verbosity of this channel. By default, use the global verbosity.

#include <ROOT/RLogger.hxx>

Inheritance diagram for ROOT::RLogChannel:
ROOT::RLogDiagCount ROOT::RLogManager

Constructor & Destructor Documentation

◆ RLogChannel() [1/3]

ROOT::RLogChannel::RLogChannel ( )
default

Construct an anonymous channel.

◆ RLogChannel() [2/3]

ROOT::RLogChannel::RLogChannel ( ELogLevel verbosity)
inlineexplicit

Construct an anonymous channel with a default verbosity.

Definition at line 109 of file RLogger.hxx.

◆ RLogChannel() [3/3]

ROOT::RLogChannel::RLogChannel ( const std::string & name)
inline

Construct a log channel given its name, which is part of the diagnostics.

Definition at line 112 of file RLogger.hxx.

Member Function Documentation

◆ GetEffectiveVerbosity()

ELogLevel ROOT::RLogChannel::GetEffectiveVerbosity ( const RLogManager & mgr) const
inline

Definition at line 309 of file RLogger.hxx.

◆ GetName()

const std::string & ROOT::RLogChannel::GetName ( ) const
inline

Definition at line 122 of file RLogger.hxx.

◆ GetNumErrors()

long long ROOT::RLogDiagCount::GetNumErrors ( ) const
inlineinherited

Returns the current number of errors.

Definition at line 60 of file RLogger.hxx.

◆ GetNumFatalErrors()

long long ROOT::RLogDiagCount::GetNumFatalErrors ( ) const
inlineinherited

Returns the current number of fatal errors.

Definition at line 63 of file RLogger.hxx.

◆ GetNumWarnings()

long long ROOT::RLogDiagCount::GetNumWarnings ( ) const
inlineinherited

Number of fatal errors.

Returns the current number of warnings.

Definition at line 57 of file RLogger.hxx.

◆ GetVerbosity()

ELogLevel ROOT::RLogChannel::GetVerbosity ( ) const
inline

Definition at line 119 of file RLogger.hxx.

◆ Increment()

void ROOT::RLogDiagCount::Increment ( ELogLevel severity)
inlineinherited

Increase warning or error count.

Definition at line 66 of file RLogger.hxx.

◆ SetVerbosity()

ELogLevel ROOT::RLogChannel::SetVerbosity ( ELogLevel verbosity)
inline

Definition at line 114 of file RLogger.hxx.

Member Data Documentation

◆ fName

std::string ROOT::RLogChannel::fName
private

Name as shown in diagnostics.

Definition at line 99 of file RLogger.hxx.

◆ fNumErrors

std::atomic<long long> ROOT::RLogDiagCount::fNumErrors {0ll}
protectedinherited

Number of warnings.

Definition at line 52 of file RLogger.hxx.

◆ fNumFatalErrors

std::atomic<long long> ROOT::RLogDiagCount::fNumFatalErrors {0ll}
protectedinherited

Number of errors.

Definition at line 53 of file RLogger.hxx.

◆ fNumWarnings

std::atomic<long long> ROOT::RLogDiagCount::fNumWarnings {0ll}
protectedinherited

Definition at line 51 of file RLogger.hxx.

◆ fVerbosity

ELogLevel ROOT::RLogChannel::fVerbosity = ELogLevel::kUnset
private

Verbosity of this channel. By default, use the global verbosity.

Definition at line 102 of file RLogger.hxx.


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