9#include <sigc++/signal.h>
47 if (current_indent) current_indent -= 1;
50 sigc::signal<void, Time::DateTime, Severity, std::string_view>
printCallback;
59 uint8_t current_indent;
60 std::string m_logName;
69 void LogOld(
Severity sv,
const char *message, fmt::printf_args args);
70 [[noreturn]]
void LogFatalOld(
const char *message, fmt::printf_args args);
73 [[noreturn]]
void LogFatalInternal(
const char *message, fmt::format_args args);
78 template <
typename... Args>
79 inline void Verbose(
const char *message, Args... args)
84 template <
typename... Args>
85 inline void Info(
const char *message, Args... args)
90 template <
typename... Args>
91 inline void Debug(
const char *message, Args... args)
96 template <
typename... Args>
97 inline void Warning(
const char *message, Args... args)
102 template <
typename... Args>
103 inline void Error(
const char *message, Args... args)
108 template <
typename... Args>
109 [[noreturn]]
inline void Fatal(
const char *message, Args... args)
117template <
typename... Args>
118inline void Output(
const char *message, Args... args)
123template <
typename... Args>
124inline void Warning(
const char *message, Args... args)
129template <
typename... Args>
130[[noreturn]]
inline void Error(
const char *message, Args... args)
135template <
typename... Args>
136inline void DebugMsg(
const char *message, Args... args)
void Output(const char *message, Args... args)
Definition: Log.h:118
void DebugMsg(const char *message, Args... args)
Definition: Log.h:136
void Warning(const char *message, Args... args)
Definition: Log.h:124
void Error(const char *message, Args... args)
Definition: Log.h:130
Definition: DateTime.h:84
void LogFatalOld(const char *message, fmt::printf_args args)
Definition: Log.cpp:176
Severity GetLogLevel()
Definition: Log.h:66
void LogOld(Severity sv, const char *message, fmt::printf_args args)
Definition: Log.cpp:167
void LogFatalInternal(const char *message, fmt::format_args args)
Definition: Log.cpp:159
void SetLog(Logger &log)
Definition: Log.cpp:138
Logger * GetLog()
Definition: Log.cpp:133
void DecreaseIndent()
Definition: Log.cpp:148
void IncreaseIndent()
Definition: Log.cpp:143
Severity
Definition: Log.h:13
void SetLogLevel(Severity sv)
Definition: Log.h:67
void LogInternal(Severity sv, const char *message, fmt::format_args args)
Definition: Log.cpp:153
void LogLevel(Severity sv, std::string &message)
Definition: Log.cpp:58
Severity GetFileSeverity()
Definition: Log.h:38
bool SetLogFile(std::string filename)
Definition: Log.cpp:38
Severity GetMsgSeverity()
Definition: Log.h:41
~Logger()
Definition: Log.cpp:32
void SetFileSeverity(Severity sv)
Definition: Log.h:39
void IncreaseIndent()
Definition: Log.h:44
void SetSeverity(Severity sv)
Definition: Log.h:36
Severity GetSeverity()
Definition: Log.h:35
void DecreaseIndent()
Definition: Log.h:45
FILE * GetLogFileHandle()
Definition: Log.h:32
void SetMsgSeverity(Severity sv)
Definition: Log.h:42
sigc::signal< void, Time::DateTime, Severity, std::string_view > printCallback
Definition: Log.h:50