Class Log

Nested Relationships

Nested Types

Class Documentation

class Log

Public Types

enum class LogLevel : uint8_t

Values:

enumerator Trace
enumerator Debug
enumerator Info
enumerator Warn
enumerator Error
enumerator Fatal

Public Static Functions

static void init()
static void init(const LoggerSettings &settings)
static void shutdown()
static std::shared_ptr<spdlog::logger> get_logger(const std::string &tag_name)
static void set_default_log_level(LogLevel level, bool apply_to_all = true)
static bool has_tag(const std::string &tag_name)
static void set_tag_level(const std::string &tag_name, LogLevel level)
static void enable_tag(const std::string &tag_name, bool enable = true)
template<typename ...Args>
static inline ScopedLogContext with_context(Args&&... args)
template<typename ...Args>
static void print_message_tag(spdlog::source_loc loc, LogLevel level, std::string_view tag, spdlog::format_string_t<Args...> format, Args&&... args)
static void print_message_tag(const spdlog::source_loc &loc, LogLevel level, std::string_view tag, std::string_view message)
template<typename ...Args>
static void print_message(const std::shared_ptr<spdlog::logger> &logger, const spdlog::source_loc &loc, LogLevel level, spdlog::format_string_t<Args...> format, Args&&... args)
static void print_message(const std::shared_ptr<spdlog::logger> &logger, const spdlog::source_loc &loc, LogLevel level, std::string_view message)
template<typename ...Args>
static bool print_assert_message(std::string_view file, int line, std::string_view function, std::string_view format, Args&&... args)
static bool print_assert_message(std::string_view file, int line, std::string_view function, std::string_view message)
struct LoggerSettings

Public Members

LogLevel default_log_level = LogLevel::Trace
std::string_view default_logger_name = "default"sv
std::string_view application_name