Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::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 101 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
 
ELogLevel GetVerbosity () const
 
ELogLevel SetVerbosity (ELogLevel verbosity)
 
- Public Member Functions inherited from ROOT::Experimental::RLogDiagCount
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.
 
void Increment (ELogLevel severity)
 Increase warning or error count.
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from ROOT::Experimental::RLogDiagCount
std::atomic< long long > fNumErrors {0ll}
 Number of warnings.
 
std::atomic< long long > fNumFatalErrors {0ll}
 Number of errors.
 
std::atomic< long long > fNumWarnings {0ll}
 

#include <ROOT/RLogger.hxx>

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

Constructor & Destructor Documentation

◆ RLogChannel() [1/3]

ROOT::Experimental::RLogChannel::RLogChannel ( )
default

Construct an anonymous channel.

◆ RLogChannel() [2/3]

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

Construct an anonymous channel with a default verbosity.

Definition at line 113 of file RLogger.hxx.

◆ RLogChannel() [3/3]

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

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

Definition at line 116 of file RLogger.hxx.

Member Function Documentation

◆ GetEffectiveVerbosity()

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

Definition at line 313 of file RLogger.hxx.

◆ GetName()

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

Definition at line 126 of file RLogger.hxx.

◆ GetVerbosity()

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

Definition at line 123 of file RLogger.hxx.

◆ SetVerbosity()

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

Definition at line 118 of file RLogger.hxx.

Member Data Documentation

◆ fName

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

Name as shown in diagnostics.

Definition at line 103 of file RLogger.hxx.

◆ fVerbosity

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

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

Definition at line 106 of file RLogger.hxx.

Libraries for ROOT::Experimental::RLogChannel:

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