A RLogHandler that multiplexes diagnostics to different client RLogHandler
s.
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 RLogManager & | Get () |
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>
|
inlineprivate |
Initialize taking a RLogHandlerDefault.
Definition at line 72 of file RLogger.hxx.
Emit a log entry.
entry | - the RLogEntry to be emitted. |
Implements ROOT::Experimental::RLogHandler.
Definition at line 85 of file RLogger.hxx.
|
static |
Definition at line 54 of file RLogger.cxx.
Returns the current number of errors seen by this log manager.
Definition at line 97 of file RLogger.hxx.
Returns the current number of warnings seen by this log manager.
Definition at line 94 of file RLogger.hxx.
|
inline |
Add a RLogHandler in the back - to be called after all others.
Definition at line 81 of file RLogger.hxx.
|
inline |
Add a RLogHandler in the front - to be called before all others.
Definition at line 78 of file RLogger.hxx.
|
private |
Definition at line 66 of file RLogger.hxx.
Definition at line 69 of file RLogger.hxx.
Definition at line 68 of file RLogger.hxx.