Logo ROOT  
Reference Guide
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. More...
 
 RLogChannel (const std::string &name)
 Construct a log channel given its name, which is part of the diagnostics. More...
 
 RLogChannel (ELogLevel verbosity)
 Construct an anonymous channel with a default verbosity. More...
 
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. More...
 
long long GetNumFatalErrors () const
 Returns the current number of fatal errors. More...
 
long long GetNumWarnings () const
 Number of fatal errors. More...
 
void Increment (ELogLevel severity)
 Increase warning or error count. More...
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from ROOT::Experimental::RLogDiagCount
std::atomic< long longfNumErrors {0ll}
 Number of warnings. More...
 
std::atomic< long longfNumFatalErrors {0ll}
 Number of errors. More...
 
std::atomic< long longfNumWarnings {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.


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