16 #ifndef JETSCAPELOGGER_H
17 #define JETSCAPELOGGER_H
28 using std::shared_ptr;
29 using std::make_shared;
33 #define RESET "\033[0m"
34 #define BOLDBLACK "\033[1m\033[30m"
35 #define BOLDRED "\033[1m\033[31m"
36 #define BOLDGREEN "\033[1m\033[32m"
37 #define BOLDYELLOW "\033[1m\033[33m"
38 #define BOLDBLUE "\033[1m\033[34m"
39 #define BOLDMAGENTA "\033[1m\033[35m"
40 #define BOLDCYAN "\033[1m\033[36m"
41 #define BOLDWHITE "\033[1m\033[37m"
60 JetScapeLogger::Instance()->Info() << " " //<<__PRETTY_FUNCTION__<<" : "
61 #define INFO_NICE JetScapeLogger::Instance()->InfoNice()
63 if (JetScapeLogger::Instance()->GetDebug()) \
64 JetScapeLogger::Instance()->Debug() << __PRETTY_FUNCTION__ << " : "
66 if (JetScapeLogger::Instance()->GetDebug()) \
67 JetScapeLogger::Instance()->DebugThread() << __PRETTY_FUNCTION__ << " : "
69 if (JetScapeLogger::Instance()->GetRemark()) \
70 JetScapeLogger::Instance()->Remark() << __PRETTY_FUNCTION__ << " : "
72 if (l < JetScapeLogger::Instance()->GetVerboseLevel()) \
73 JetScapeLogger::Instance()->Verbose(l) << __PRETTY_FUNCTION__ << " : "
74 #define VERBOSESHOWER(l) \
75 if (l < JetScapeLogger::Instance()->GetVerboseLevel()) \
76 JetScapeLogger::Instance()->VerboseShower(l) << __PRETTY_FUNCTION__ << " : "
77 #define VERBOSEPARTON(l, p) \
78 if (l < JetScapeLogger::Instance()->GetVerboseLevel()) \
79 JetScapeLogger::Instance()->VerboseParton(l, p) \
80 << __PRETTY_FUNCTION__ << " : "
81 #define VERBOSEPVERTEX(l, v) \
82 if (l < JetScapeLogger::Instance()->GetVerboseLevel()) \
83 JetScapeLogger::Instance()->VerboseVertex(l, v) \
84 << __PRETTY_FUNCTION__ << " : "
86 JetScapeLogger::Instance()->Warn() << __PRETTY_FUNCTION__ << " : "
110 impl(std::ostream &ostream, std::mutex &mutex)