R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BLogger.h File Reference
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <FairLogger.h>
Include dependency graph for R3BLogger.h:

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:
if (true) \
{ \
std::string fN(__FILE__); \
std::stringstream ss; \
ss << fN.substr(fN.find_last_of("/") + 1) << ":" << __LINE__ << ":" << __FUNCTION__ << "(): "; \
LOG(severity) << ss.str() << x; \
} \
else \
(void)0

Definition at line 35 of file R3BLogger.h.

◆ R3BLOG_IF

#define R3BLOG_IF ( severity,
condition,
x )
Value:
if (true) \
{ \
std::string fNif(__FILE__); \
std::stringstream ssif; \
ssif << fNif.substr(fNif.find_last_of("/") + 1) << ":" << __LINE__ << ":" << __FUNCTION__ << "(): "; \
LOG_IF(severity, condition) << ssif.str() << x; \
} \
else \
(void)0

Definition at line 46 of file R3BLogger.h.