Logging.hh File Reference

#include "Rivet/Rivet.hh"
Include dependency graph for Logging.hh:

Go to the source code of this file.

Classes

class  Log

Namespaces

namespace  Rivet

Defines

#define MSG_LVL(lvl, x)
#define MSG_TRACE(x)   MSG_LVL(Log::TRACE, x)
#define MSG_DEBUG(x)   MSG_LVL(Log::DEBUG, x)
#define MSG_INFO(x)   MSG_LVL(Log::INFO, x)
#define MSG_WARNING(x)   MSG_LVL(Log::WARNING, x)
#define MSG_ERROR(x)   MSG_LVL(Log::ERROR, x)

Functions

std::ostream & operator<< (Log &log, int level)
 Streaming output to a logger must have a Log::Level/int as its first argument.

Define Documentation

#define MSG_DEBUG (  )     MSG_LVL(Log::DEBUG, x)
#define MSG_ERROR (  )     MSG_LVL(Log::ERROR, x)

Definition at line 184 of file Logging.hh.

Referenced by AnalysisInfo::make(), Analysis::normalize(), and Analysis::scale().

#define MSG_INFO (  )     MSG_LVL(Log::INFO, x)

Definition at line 182 of file Logging.hh.

Referenced by AnalysisHandler::finalize().

#define MSG_LVL ( lvl,
 ) 
Value:
do { \
    if (getLog().isActive(lvl)) { \
      getLog() << lvl << x << endl;   \
    } \
  } while (0)

Definition at line 173 of file Logging.hh.

#define MSG_TRACE (  )     MSG_LVL(Log::TRACE, x)
#define MSG_WARNING (  )     MSG_LVL(Log::WARNING, x)