R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BLogger.h File Reference
#include <FairLogger.h>
#include <Rtypes.h>
#include <cstdlib>
#include <fairlogger/Logger.h>
Include dependency graph for R3BLogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  R3BLogger

Macros

#define R3BLOG(severity, x)
#define R3BLOG_IF(severity, condition, x)

Macro Definition Documentation

◆ R3BLOG

#define R3BLOG ( severity,
x )
Value:
do \
{ \
std::string infile(__FILE__); \
std::stringstream ss; \
ss << infile.substr(infile.find_last_of("/") + 1) << ":" << __LINE__ << ":" << __FUNCTION__ << "(): "; \
LOG(severity) << ss.str() << x; \
} while (0)

Definition at line 33 of file R3BLogger.h.

◆ R3BLOG_IF

#define R3BLOG_IF ( severity,
condition,
x )
Value:
do \
{ \
if (condition) \
{ \
std::string infile(__FILE__); \
std::stringstream ss; \
ss << infile.substr(infile.find_last_of("/") + 1) << ":" << __LINE__ << ":" << __FUNCTION__ << "(): "; \
LOG(severity) << ss.str() << x; \
} \
} while (0)

Definition at line 42 of file R3BLogger.h.