Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Logging.hh File Reference

Message logging routines. More...

#include <string>
#include <map>
#include <iostream>
#include <mutex>
#include <memory>
#include "Hammer/Exceptions.hh"
+ Include dependency graph for Logging.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Hammer::Log
 Logging class. More...
 

Namespaces

 Hammer
 The Hammer namespace contains the library code.
 

Macros

#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

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

Detailed Description

Message logging routines.

based on Logging from Rivet v.2.1.1

Definition in file Logging.hh.

Macro Definition Documentation

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

Definition at line 364 of file Logging.hh.

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

Definition at line 367 of file Logging.hh.

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

Definition at line 365 of file Logging.hh.

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

Definition at line 356 of file Logging.hh.

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

Definition at line 363 of file Logging.hh.

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

Definition at line 366 of file Logging.hh.