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>
Include dependency graph for RLogger.hxx:
This graph shows which files directly or indirectly include this file:

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
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 
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:360
#define R__LOG_INFO(...)
Definition RLogger.hxx:359
ROOT::RLogChannel & WebGUILog()
Log channel for WebGUI diagnostics.
#define R__LOG_DEBUG(DEBUGLEVEL, ...)   R__LOG_TO_CHANNEL(ROOT::ELogLevel::kDebug + DEBUGLEVEL, __VA_ARGS__)
 
#define R__LOG_ERROR(...)   R__LOG_TO_CHANNEL(ROOT::ELogLevel::kError, __VA_ARGS__)
 
#define R__LOG_FATAL(...)   R__LOG_TO_CHANNEL(ROOT::ELogLevel::kFatal, __VA_ARGS__)
 
#define R__LOG_INFO(...)   R__LOG_TO_CHANNEL(ROOT::ELogLevel::kInfo, __VA_ARGS__)
 
#define R__LOG_WARNING(...)   R__LOG_TO_CHANNEL(ROOT::ELogLevel::kWarning, __VA_ARGS__)
 

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

Definition at line 360 of file RLogger.hxx.

◆ R__LOG_ERROR

#define R__LOG_ERROR ( ...)    R__LOG_TO_CHANNEL(ROOT::ELogLevel::kError, __VA_ARGS__)

Definition at line 357 of file RLogger.hxx.

◆ R__LOG_FATAL

#define R__LOG_FATAL ( ...)    R__LOG_TO_CHANNEL(ROOT::ELogLevel::kFatal, __VA_ARGS__)

Definition at line 356 of file RLogger.hxx.

◆ R__LOG_INFO

#define R__LOG_INFO ( ...)    R__LOG_TO_CHANNEL(ROOT::ELogLevel::kInfo, __VA_ARGS__)

Definition at line 359 of file RLogger.hxx.

◆ R__LOG_PRETTY_FUNCTION

#define R__LOG_PRETTY_FUNCTION   __PRETTY_FUNCTION__

Definition at line 322 of file RLogger.hxx.

◆ R__LOG_TO_CHANNEL

#define R__LOG_TO_CHANNEL ( SEVERITY,
CHANNEL )
Value:
#define R__LOG_PRETTY_FUNCTION
Definition RLogger.hxx:322
ELogLevel GetEffectiveVerbosity(const RLogManager &mgr) const
Definition RLogger.hxx:310
static RLogManager & Get()
Definition RLogger.cxx:60
RLogChannel & GetChannelOrManager()
Definition RLogger.hxx:299
@ kInfo
Informational messages; used for instance for tracing.

Definition at line 340 of file RLogger.hxx.

◆ R__LOG_WARNING

#define R__LOG_WARNING ( ...)    R__LOG_TO_CHANNEL(ROOT::ELogLevel::kWarning, __VA_ARGS__)

Definition at line 358 of file RLogger.hxx.