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::Experimental::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::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...
 
class  ROOT::Experimental::RLogScopedDiagCount
 Object to count the number of warnings and errors emitted by a section of code, after construction of this type. More...
 
class  ROOT::Experimental::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::Experimental
 
namespace  ROOT::Experimental::Detail
 
namespace  ROOT::Experimental::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::Experimental::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:365
#define R__LOG_INFO(...)
Definition RLogger.hxx:364
RLogChannel & HistLog()
Log channel for Hist diagnostics.
Definition RAxis.cxx:25
ROOT::Experimental::RLogChannel & WebGUILog()
Log channel for WebGUI diagnostics.
#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 class  ROOT::Experimental::ELogLevel : unsigned char {
  ROOT::Experimental::kUnset , ROOT::Experimental::kFatal , ROOT::Experimental::kError , ROOT::Experimental::kWarning ,
  ROOT::Experimental::kInfo , ROOT::Experimental::kDebug
}
 Kinds of diagnostics. More...
 

Functions

RLogChannelROOT::Experimental::Internal::GetChannelOrManager ()
 
RLogChannelROOT::Experimental::Internal::GetChannelOrManager (RLogChannel &channel)
 
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::Detail::RLogBuilder(SEVERITY, ROOT::Experimental::Internal::GetChannelOrManager(CHANNEL), \
__FILE__, __LINE__, R__LOG_PRETTY_FUNCTION)
#define R__LOG_PRETTY_FUNCTION
Definition RLogger.hxx:326
ELogLevel GetEffectiveVerbosity(const RLogManager &mgr) const
Definition RLogger.hxx:313
static RLogManager & Get()
Definition RLogger.cxx:62
RLogChannel & GetChannelOrManager()
Definition RLogger.hxx:302
@ kInfo
Informational messages; used for instance for tracing.

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.