51#define OutDev(loglevel, ...) RMGLog::Out(loglevel, "[", __PRETTY_FUNCTION__, "] ", __VA_ARGS__)
53#define OutFormatDev(loglevel, fmt, ...) \
54 RMGLog::OutFormat(loglevel, "[" + std::string(__PRETTY_FUNCTION__) + "] " + fmt, __VA_ARGS__)
125 static void SetProcNum(
int proc_num) { fProcNum = proc_num; }
141 template<
typename T,
typename... Args>
144 template<
typename... Args>
145 static void OutFormat(
RMGLog::LogLevel loglevel,
const std::string& fmt,
const Args&... args);
147 template<
typename T,
typename... Args>
160 static bool SupportsColors(
const std::ostream& os);
162 template<RMGLog::Ansi color,
typename T>
163 static std::string Colorize(
const T& msg, std::ostream& os,
bool bold =
false);
165 static bool HadWarning() {
return fHadWarning; }
166 static bool HadError() {
return fHadError; }
173 static void Print(
RMGLog::LogLevel loglevel,
const T& msg,
bool prefixed =
true,
bool do_flush =
true);
181 static std::string fVersion;
189 static bool fFirstOutputDone;
193 static bool fHadWarning;
197 static bool fHadError;
201 static bool fUsePrefix;
LogLevel
Definition RMGLog.hh:66
@ error
Print only errors.
Definition RMGLog.hh:72
@ nothing
Print nothing.
Definition RMGLog.hh:74
@ warning
Print only warnings and errors.
Definition RMGLog.hh:71
@ debug_event
Print everything, including debug info (also in the event loop)
Definition RMGLog.hh:67
@ detail
Print all details of operation.
Definition RMGLog.hh:69
@ fatal
Print only errors, stop execution.
Definition RMGLog.hh:73
@ summary
Print only results summary, warnings, and errors.
Definition RMGLog.hh:70
@ debug
Print everything, including debug info (not in the event loop)
Definition RMGLog.hh:68
static void SetProcNum(int proc_num)
Definition RMGLog.hh:125
static RMGLog::LogLevel GetLogLevel()
Definition RMGLog.hh:103
static bool GetPrefix()
Definition RMGLog.hh:108
static const std::string & GetVersion()
Definition RMGLog.hh:158
static void SetLogLevel(RMGLog::LogLevel loglevel)
Definition RMGLog.hh:117
RMGLog()
Definition RMGLog.cc:72
static void SetInihibitStartupInfo(bool flag)
Definition RMGLog.hh:129
static void SetPrefix(bool flag)
Definition RMGLog.hh:121
static void StartupInfo()
Definition RMGLog.cc:82
static void Out(RMGLog::LogLevel loglevel, const T &message)