ROOT 6.16/01 Reference Guide |
A TLogHandler that multiplexes diagnostics to different client TLogHandler
s.
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 () |
virtual bool | Emit (const TLogEntry &entry)=0 |
Emit a log entry. More... | |
Static Public Member Functions | |
static TLogManager & | Get () |
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>
|
inlineprivate |
Initialize taking a TLogHandlerDefault.
Definition at line 71 of file TLogger.hxx.
|
inlineoverridevirtual |
Emit a log entry.
entry | - the TLogEntry to be emitted. |
Implements ROOT::Experimental::TLogHandler.
Definition at line 84 of file TLogger.hxx.
|
static |
Definition at line 54 of file TLogger.cxx.
|
inline |
Returns the current number of errors seen by this log manager.
Definition at line 96 of file TLogger.hxx.
|
inline |
Returns the current number of warnings seen by this log manager.
Definition at line 93 of file TLogger.hxx.
|
inline |
Add a TLogHandler in the back - to be called after all others.
Definition at line 80 of file TLogger.hxx.
|
inline |
Add a TLogHandler in the front - to be called before all others.
Definition at line 77 of file TLogger.hxx.
|
private |
Definition at line 65 of file TLogger.hxx.
|
private |
Definition at line 68 of file TLogger.hxx.
|
private |
Definition at line 67 of file TLogger.hxx.