Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::Experimental::TLogManager Class Reference

A TLogHandler that multiplexes diagnostics to different client TLogHandlers.

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

Definition at line 63 of file TLogger.hxx.

Public Member Functions

bool Emit (const TLogEntry &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< TLogHandler > handler)
 Add a TLogHandler in the back - to be called after all others. More...
 
void PushFront (std::unique_ptr< TLogHandler > handler)
 Add a TLogHandler in the front - to be called before all others. More...
 
- Public Member Functions inherited from ROOT::Experimental::TLogHandler
virtual ~TLogHandler ()
 

Static Public Member Functions

static TLogManagerGet ()
 

Private Member Functions

 TLogManager (std::unique_ptr< TLogHandler > &&lh)
 Initialize taking a TLogHandlerDefault. More...
 

Private Attributes

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

#include <ROOT/TLogger.hxx>

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

Constructor & Destructor Documentation

◆ TLogManager()

ROOT::Experimental::TLogManager::TLogManager ( std::unique_ptr< TLogHandler > &&  lh)
inlineprivate

Initialize taking a TLogHandlerDefault.

Definition at line 71 of file TLogger.hxx.

Member Function Documentation

◆ Emit()

bool ROOT::Experimental::TLogManager::Emit ( const TLogEntry entry)
inlineoverridevirtual

Emit a log entry.

Parameters
entry- the TLogEntry 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::TLogHandler.

Definition at line 84 of file TLogger.hxx.

◆ Get()

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

Definition at line 54 of file TLogger.cxx.

◆ GetNumErrors()

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

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

Definition at line 96 of file TLogger.hxx.

◆ GetNumWarnings()

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

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

Definition at line 93 of file TLogger.hxx.

◆ PushBack()

void ROOT::Experimental::TLogManager::PushBack ( std::unique_ptr< TLogHandler handler)
inline

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

Definition at line 80 of file TLogger.hxx.

◆ PushFront()

void ROOT::Experimental::TLogManager::PushFront ( std::unique_ptr< TLogHandler handler)
inline

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

Definition at line 77 of file TLogger.hxx.

Member Data Documentation

◆ fHandlers

std::vector<std::unique_ptr<TLogHandler> > ROOT::Experimental::TLogManager::fHandlers
private

Definition at line 65 of file TLogger.hxx.

◆ fNumErrors

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

Definition at line 68 of file TLogger.hxx.

◆ fNumWarnings

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

Definition at line 67 of file TLogger.hxx.

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

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