Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RLogger.hxx File Reference
#include <atomic>
#include <list>
#include <memory>
#include <mutex>
#include <sstream>
#include <string>
#include <utility>

Classes

class  ROOT::Detail::RLogBuilder
 Builds a diagnostic entry, emitted by the static RLogManager upon destruction of this builder, where - by definition - the RLogEntry has been completely built. More...
class  ROOT::RLogChannel
 A log configuration for a channel, e.g. More...
class  ROOT::RLogDiagCount
 Keep track of emitted errors and warnings. More...
class  ROOT::RLogEntry
 A diagnostic that can be emitted by the RLogManager. More...
class  ROOT::RLogHandler
 Abstract RLogHandler base class. More...
struct  ROOT::RLogLocation
 A diagnostic location, part of an RLogEntry. More...
class  ROOT::RLogManager
 A RLogHandler that multiplexes diagnostics to different client RLogHandlers and keeps track of the sum of RLogDiagCounts for all channels. More...
class  ROOT::RLogScopedDiagCount
 Object to count the number of warnings and errors emitted by a section of code, after construction of this type. More...
class  ROOT::RLogScopedVerbosity
 Change the verbosity level (global or specific to the RLogChannel passed to the constructor) for the lifetime of this object. More...

Namespaces

namespace  ROOT
namespace  ROOT::Detail
 Special implementation of ROOT::RRangeCast for TCollection, including a check that the cast target type inherits from TObject and a new constructor that takes the TCollection by pointer.
namespace  ROOT::Internal

Macros

#define R__LOG_PRETTY_FUNCTION   __PRETTY_FUNCTION__
#define R__LOG_TO_CHANNEL(SEVERITY, CHANNEL)
LogMacros

Macros to log diagnostics.

R__LOG_INFO(ROOT::HistLog()) << "all we know is " << 42;
RLogScopedVerbosity verbose(kDebug + 5);
const int decreasedInfoLevel = 5;
R__LOG_DEBUG(ROOT::WebGUILog(), decreasedInfoLevel) << "nitty-gritty details";
#define R__LOG_DEBUG(DEBUGLEVEL,...)
Definition RLogger.hxx:359
#define R__LOG_INFO(...)
Definition RLogger.hxx:358
ROOT::RLogChannel & WebGUILog()
Log channel for WebGUI diagnostics.
#define R__LOG_DEBUG(DEBUGLEVEL, ...)
#define R__LOG_ERROR(...)
#define R__LOG_FATAL(...)
#define R__LOG_INFO(...)
#define R__LOG_WARNING(...)

Enumerations

enum class  ROOT::ELogLevel : unsigned char {
  ROOT::kUnset , ROOT::kFatal , ROOT::kError , ROOT::kWarning ,
  ROOT::kInfo , ROOT::kDebug
}
 Kinds of diagnostics. More...

Functions

RLogChannelROOT::Internal::GetChannelOrManager ()
RLogChannelROOT::Internal::GetChannelOrManager (RLogChannel &channel)
ELogLevel ROOT::operator+ (ELogLevel severity, int offset)

Detailed Description

Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Date
2015-03-29

Definition in file RLogger.hxx.

Macro Definition Documentation

◆ R__LOG_DEBUG

#define R__LOG_DEBUG ( DEBUGLEVEL,
... )
Value:
R__LOG_TO_CHANNEL(ROOT::ELogLevel::kDebug + DEBUGLEVEL, __VA_ARGS__)
#define R__LOG_TO_CHANNEL(SEVERITY, CHANNEL)
Definition RLogger.hxx:339
@ kDebug
Debug information; only useful for developers; can have added verbosity up to 255-kDebug.
Definition RLogger.hxx:38

Definition at line 359 of file RLogger.hxx.

◆ R__LOG_ERROR

#define R__LOG_ERROR ( ...)
Value:

Definition at line 356 of file RLogger.hxx.

◆ R__LOG_FATAL

#define R__LOG_FATAL ( ...)
Value:
@ kFatal
An error which causes further processing to be unreliable.
Definition RLogger.hxx:34

Definition at line 355 of file RLogger.hxx.

◆ R__LOG_INFO

#define R__LOG_INFO ( ...)
Value:
@ kInfo
Informational messages; used for instance for tracing.
Definition RLogger.hxx:37

Definition at line 358 of file RLogger.hxx.

◆ R__LOG_PRETTY_FUNCTION

#define R__LOG_PRETTY_FUNCTION   __PRETTY_FUNCTION__

Definition at line 321 of file RLogger.hxx.

◆ R__LOG_TO_CHANNEL

#define R__LOG_TO_CHANNEL ( SEVERITY,
CHANNEL )
Value:
((SEVERITY < ROOT::ELogLevel::kInfo + 0) || \
ROOT::Internal::GetChannelOrManager(CHANNEL).GetEffectiveVerbosity(ROOT::RLogManager::Get()) >= SEVERITY) && \
ROOT::Detail::RLogBuilder(SEVERITY, ROOT::Internal::GetChannelOrManager(CHANNEL), __FILE__, __LINE__, \
#define R__LOG_PRETTY_FUNCTION
Definition RLogger.hxx:321
Builds a diagnostic entry, emitted by the static RLogManager upon destruction of this builder,...
Definition RLogger.hxx:209
static RLogManager & Get()
Definition RLogger.cxx:59
RLogChannel & GetChannelOrManager()
Definition RLogger.hxx:298

Definition at line 339 of file RLogger.hxx.

◆ R__LOG_WARNING

#define R__LOG_WARNING ( ...)
Value:
@ kWarning
Warnings about likely unexpected behavior.
Definition RLogger.hxx:36

Definition at line 357 of file RLogger.hxx.