34#define BITRL_LOG_TRACE BITSIM_LOG_TO("bitrl", ::bitsim::log::Level::trace)
35#define BITRL_LOG_DEBUG BITSIM_LOG_TO("bitrl", ::bitsim::log::Level::debug)
36#define BITRL_LOG_INFO BITSIM_LOG_TO("bitrl", ::bitsim::log::Level::info)
37#define BITRL_LOG_WARN BITSIM_LOG_TO("bitrl", ::bitsim::log::Level::warn)
38#define BITRL_LOG_ERROR BITSIM_LOG_TO("bitrl", ::bitsim::log::Level::error)
39#define BITRL_LOG_CRITICAL BITSIM_LOG_TO("bitrl", ::bitsim::log::Level::critical)
Logging for bitsim and the libraries built on it, on top of spdlog.
Definition bitrl_log.h:25
void add_file_sink(const std::string &filename, bool truncate)
Write the messages of every logger to a file as well.
Definition logger.cpp:189
Level
The severity of a message, and the lowest severity a logger writes.
Definition logger.h:44
Level get_level(const std::string &logger)
The level of the logger with the given name, making it if needed.
Definition logger.cpp:182
void set_level(Level level)
Set the level of every logger, and of the loggers made later.
Definition logger.cpp:165
void flush()
Write out what the sinks hold.
Definition logger.cpp:210
void set_pattern(const std::string &pattern)
Set the format of the messages of every sink, in spdlog's pattern syntax. The default is "[%Y-%m-%d %...
Definition logger.cpp:198