Logo ROOT  
Reference Guide
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::Experimental::RLogChannel
 A log configuration for a channel, e.g. More...
 
class  ROOT::Experimental::RLogDiagCount
 Keep track of emitted errors and warnings. More...
 
class  ROOT::Experimental::RLogEntry
 A diagnostic that can be emitted by the RLogManager. More...
 
class  ROOT::Experimental::RLogHandler
 Abstract RLogHandler base class. More...
 
struct  ROOT::Experimental::RLogLocation
 A diagnostic location, part of an RLogEntry. More...
 
class  ROOT::Experimental::RLogManager
 A RLogHandler that multiplexes diagnostics to different client RLogHandlers and keeps track of the sum of RLogDiagCounts for all channels. More...
 

Namespaces

 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
 
 ROOT::Experimental
 
 ROOT::Experimental::Detail
 

Macros

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

Macros to log diagnostics.

{c++}
R__LOG_INFO(ROOT::Experimental::HistLog()) << "all we know is " << 42;
RLogScopedVerbosity verbose(kDebug + 5);
const int decreasedInfoLevel = 5;
R__LOG_DEBUG(decreasedInfoLevel, ROOT::Experimental::WebGUILog()) << "nitty-gritty details";
#define R__LOG_DEBUG(DEBUGLEVEL, ...)   R__LOG_TO_CHANNEL(ROOT::Experimental::ELogLevel::kDebug + DEBUGLEVEL, __VA_ARGS__)
 
#define R__LOG_ERROR(...)   R__LOG_TO_CHANNEL(ROOT::Experimental::ELogLevel::kError, __VA_ARGS__)
 
#define R__LOG_FATAL(...)   R__LOG_TO_CHANNEL(ROOT::Experimental::ELogLevel::kFatal, __VA_ARGS__)
 
#define R__LOG_INFO(...)   R__LOG_TO_CHANNEL(ROOT::Experimental::ELogLevel::kInfo, __VA_ARGS__)
 
#define R__LOG_WARNING(...)   R__LOG_TO_CHANNEL(ROOT::Experimental::ELogLevel::kWarning, __VA_ARGS__)
 

Enumerations

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

Functions

ELogLevel ROOT::Experimental::operator+ (ELogLevel severity, int offset)
 

Detailed Description

Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Date
2015-03-29
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition in file RLogger.hxx.

Macro Definition Documentation

◆ R__LOG_DEBUG

#define R__LOG_DEBUG (   DEBUGLEVEL,
  ... 
)    R__LOG_TO_CHANNEL(ROOT::Experimental::ELogLevel::kDebug + DEBUGLEVEL, __VA_ARGS__)

Definition at line 365 of file RLogger.hxx.

◆ R__LOG_ERROR

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

Definition at line 362 of file RLogger.hxx.

◆ R__LOG_FATAL

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

Definition at line 361 of file RLogger.hxx.

◆ R__LOG_INFO

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

Definition at line 364 of file RLogger.hxx.

◆ R__LOG_PRETTY_FUNCTION

#define R__LOG_PRETTY_FUNCTION   __PRETTY_FUNCTION__

Definition at line 326 of file RLogger.hxx.

◆ R__LOG_TO_CHANNEL

#define R__LOG_TO_CHANNEL (   SEVERITY,
  CHANNEL 
)
Value:
((SEVERITY < ROOT::Experimental::ELogLevel::kInfo + 0) || \
ROOT::Experimental::Internal::GetChannelOrManager(CHANNEL).GetEffectiveVerbosity( \
ROOT::Experimental::Detail::RLogBuilder(SEVERITY, ROOT::Experimental::Internal::GetChannelOrManager(CHANNEL), \
__FILE__, __LINE__, R__LOG_PRETTY_FUNCTION)

Definition at line 344 of file RLogger.hxx.

◆ R__LOG_WARNING

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

Definition at line 363 of file RLogger.hxx.

c
#define c(i)
Definition: RSha256.hxx:101
ROOT::Experimental::HistLog
RLogChannel & HistLog()
Log channel for Hist diagnostics.
Definition: RAxis.cxx:25
ROOT::Experimental::WebGUILog
RLogChannel & WebGUILog()
Log channel for WebGUI diagnostics.
Definition: RWebDisplayArgs.cxx:24
R__LOG_INFO
#define R__LOG_INFO(...)
Definition: RLogger.hxx:364
R__LOG_PRETTY_FUNCTION
#define R__LOG_PRETTY_FUNCTION
Definition: RLogger.hxx:326
ROOT::Experimental::ELogLevel::kInfo
@ kInfo
Informational messages; used for instance for tracing.
genreflex::verbose
bool verbose
Definition: rootcling_impl.cxx:133
ROOT::Experimental::RLogManager::Get
static RLogManager & Get()
Definition: RLogger.cxx:62
R__LOG_DEBUG
#define R__LOG_DEBUG(DEBUGLEVEL,...)
Definition: RLogger.hxx:365