44void debug(
const std::string& message);
51template <
typename... Args>
void debug(std::format_string<Args...> format, Args&&... args)
53 debug(std::format(format, std::forward<Args>(args)...));
60void info(
const std::string& message);
67template <
typename... Args>
void info(std::format_string<Args...> format, Args&&... args)
69 info(std::format(format, std::forward<Args>(args)...));
76void warn(
const std::string& message);
84template <
typename... Args>
void warn(std::format_string<Args...> format, Args&&... args)
86 warn(std::format(format, std::forward<Args>(args)...));
93void error(
const std::string& message);
100template <
typename... Args>
void error(std::format_string<Args...> format, Args&&... args)
102 error(std::format(format, std::forward<Args>(args)...));
119template <
typename... Args>
120void progress(
float prog, std::format_string<Args...> format, Args&&... args)
122 progress(prog, std::format(format, std::forward<Args>(args)...));
void set_output(std::ostream &stream)
Set the output stream (default: std::cerr).
void info(const std::string &message)
Log an info message.
void debug(const std::string &message)
Log a debug message.
void log_message(Level level, const std::string &message)
Log a message at the specified level. Messages below the current log level are ignored.
void error(const std::string &message)
Log an error message.
void warn(const std::string &message)
Log a warning message.
Level
Log severity levels.
void progress(float progress, std::string message)
Log a progress message with a percentage.
void set_level(Level level)
Set the minimum log level (messages below this are ignored).