22enum class LogLevel { Debug = 0, Info = 1, Warning = 2, Error = 3 };
48inline void log_warning(
const Logger &lg, std::string_view msg) {
49 log(lg, LogLevel::Warning, msg);
51inline void log_info(
const Logger &lg, std::string_view msg) {
52 log(lg, LogLevel::Info, msg);
54inline void log_debug(
const Logger &lg, std::string_view msg) {
55 log(lg, LogLevel::Debug, msg);
void log(const Logger &logger, LogLevel level, std::string_view message)
Write a log message if level >= logger.m_min_level.
void log_error(const Logger &lg, std::string_view msg)
Convenience helpers.
Definition logging.hpp:45
LogLevel
Log severity levels.
Definition logging.hpp:22
Lightweight logger configuration.
Definition logging.hpp:29
Represents the global simulation domain (the "world").
Definition world.hpp:91