Logo ROOT  
Reference Guide
ROOT::Experimental::RLogManager Class Reference

A RLogHandler that multiplexes diagnostics to different client RLogHandlers.

RLogHandler::Get() returns the process's (static) log manager.

Definition at line 64 of file RLogger.hxx.

Public Member Functions

bool Emit (const RLogEntry &entry) override
 Emit a log entry. More...
 
long long GetNumErrors () const
 Returns the current number of errors seen by this log manager. More...
 
long long GetNumWarnings () const
 Returns the current number of warnings seen by this log manager. More...
 
void PushBack (std::unique_ptr< RLogHandler > handler)
 Add a RLogHandler in the back - to be called after all others. More...
 
void PushFront (std::unique_ptr< RLogHandler > handler)
 Add a RLogHandler in the front - to be called before all others. More...
 
- Public Member Functions inherited from ROOT::Experimental::RLogHandler
virtual ~RLogHandler ()
 
virtual bool Emit (const RLogEntry &entry)=0
 Emit a log entry. More...
 

Static Public Member Functions

static RLogManagerGet ()
 

Private Member Functions

 RLogManager (std::unique_ptr< RLogHandler > &&lh)
 Initialize taking a RLogHandlerDefault. More...
 

Private Attributes

std::vector< std::unique_ptr< RLogHandler > > fHandlers
 
long long fNumErrors {0}
 
long long fNumWarnings {0}
 

#include <ROOT/RLogger.hxx>

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

Constructor & Destructor Documentation

◆ RLogManager()

ROOT::Experimental::RLogManager::RLogManager ( std::unique_ptr< RLogHandler > &&  lh)
inlineprivate

Initialize taking a RLogHandlerDefault.

Definition at line 72 of file RLogger.hxx.

Member Function Documentation

◆ Emit()

bool ROOT::Experimental::RLogManager::Emit ( const RLogEntry entry)
inlineoverridevirtual

Emit a log entry.

Parameters
entry- the RLogEntry to be emitted.
Returns
false if further emission of this Log should be suppressed.
Note
This function is called concurrently; log emission must be locked if needed. (The default log handler using ROOT's DefaultErrorHandler is locked.)

Implements ROOT::Experimental::RLogHandler.

Definition at line 85 of file RLogger.hxx.

◆ Get()

ROOT::Experimental::RLogManager & ROOT::Experimental::RLogManager::Get ( )
static

Definition at line 54 of file RLogger.cxx.

◆ GetNumErrors()

long long ROOT::Experimental::RLogManager::GetNumErrors ( ) const
inline

Returns the current number of errors seen by this log manager.

Definition at line 97 of file RLogger.hxx.

◆ GetNumWarnings()

long long ROOT::Experimental::RLogManager::GetNumWarnings ( ) const
inline

Returns the current number of warnings seen by this log manager.

Definition at line 94 of file RLogger.hxx.

◆ PushBack()

void ROOT::Experimental::RLogManager::PushBack ( std::unique_ptr< RLogHandler handler)
inline

Add a RLogHandler in the back - to be called after all others.

Definition at line 81 of file RLogger.hxx.

◆ PushFront()

void ROOT::Experimental::RLogManager::PushFront ( std::unique_ptr< RLogHandler handler)
inline

Add a RLogHandler in the front - to be called before all others.

Definition at line 78 of file RLogger.hxx.

Member Data Documentation

◆ fHandlers

std::vector<std::unique_ptr<RLogHandler> > ROOT::Experimental::RLogManager::fHandlers
private

Definition at line 66 of file RLogger.hxx.

◆ fNumErrors

long long ROOT::Experimental::RLogManager::fNumErrors {0}
private

Definition at line 69 of file RLogger.hxx.

◆ fNumWarnings

long long ROOT::Experimental::RLogManager::fNumWarnings {0}
private

Definition at line 68 of file RLogger.hxx.


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