A RLogHandler that multiplexes diagnostics to different client RLogHandler
s and keeps track of the sum of RLogDiagCount
s for all channels.
RLogHandler::Get()
returns the process's (static) log manager.
Definition at line 136 of file RLogger.hxx.
Public Member Functions | |
RLogManager (std::unique_ptr< RLogHandler > lh) | |
Initialize taking a RLogHandler. | |
bool | Emit (const RLogEntry &entry) override |
Emit a log entry. | |
void | PushBack (std::unique_ptr< RLogHandler > handler) |
Add a RLogHandler in the back - to be called after all others. | |
void | PushFront (std::unique_ptr< RLogHandler > handler) |
Add a RLogHandler in the front - to be called before all others. | |
std::unique_ptr< RLogHandler > | Remove (RLogHandler *handler) |
Remove and return the given log handler. Returns nullptr if not found. | |
Public Member Functions inherited from ROOT::Experimental::RLogChannel | |
RLogChannel ()=default | |
Construct an anonymous channel. | |
RLogChannel (const std::string &name) | |
Construct a log channel given its name, which is part of the diagnostics. | |
RLogChannel (ELogLevel verbosity) | |
Construct an anonymous channel with a default verbosity. | |
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. | |
long long | GetNumFatalErrors () const |
Returns the current number of fatal errors. | |
long long | GetNumWarnings () const |
Number of fatal errors. | |
void | Increment (ELogLevel severity) |
Increase warning or error count. | |
Public Member Functions inherited from ROOT::Experimental::RLogHandler | |
virtual | ~RLogHandler () |
Static Public Member Functions | |
static RLogManager & | Get () |
Private Attributes | |
std::list< std::unique_ptr< RLogHandler > > | fHandlers |
std::mutex | fMutex |
Additional Inherited Members | |
Protected Attributes inherited from ROOT::Experimental::RLogDiagCount | |
std::atomic< long long > | fNumErrors {0ll} |
Number of warnings. | |
std::atomic< long long > | fNumFatalErrors {0ll} |
Number of errors. | |
std::atomic< long long > | fNumWarnings {0ll} |
#include <ROOT/RLogger.hxx>
|
inline |
Initialize taking a RLogHandler.
Definition at line 142 of file RLogger.hxx.
Emit a log entry.
entry | - the RLogEntry to be emitted. |
Implements ROOT::Experimental::RLogHandler.
Definition at line 82 of file RLogger.cxx.
|
static |
Definition at line 62 of file RLogger.cxx.
|
inline |
Add a RLogHandler in the back - to be called after all others.
Definition at line 153 of file RLogger.hxx.
|
inline |
Add a RLogHandler in the front - to be called before all others.
Definition at line 150 of file RLogger.hxx.
std::unique_ptr< RLogHandler > RLogManager::Remove | ( | RLogHandler * | handler | ) |
Remove and return the given log handler. Returns nullptr
if not found.
Definition at line 68 of file RLogger.cxx.
|
private |
Definition at line 138 of file RLogger.hxx.
|
private |
Definition at line 137 of file RLogger.hxx.