Class Logger¶
Defined in File logger.hpp
Class Documentation¶
-
class Logger¶
Central logging facility for AMS. Provides thread-safe, fmt-based output with compile-time filtering.
Public Functions
-
void setOutputFile(const std::string &path)¶
Redirects logging output to the given file path.
-
inline void setOutputStdout() noexcept¶
Redirects logging to stdout.
-
inline void setOutputStderr() noexcept¶
Redirects logging to stderr.
-
template<typename ...Args>
inline void log(LogLevel lvl, const char *Descr, fmt::format_string<Args...> fmtstr, Args&&... args)¶ Logs a message using fmt formatting.
-
inline bool isEnabled(LogLevel lvl) const noexcept¶
Returns true if the runtime level allows logging the given level.
-
inline void flush()¶
Flushes the output stream.
-
void setOutputFile(const std::string &path)¶