Template Class Logger

Inheritance Relationships

Base Type

Class Documentation

template<const char *name>
class Logger : public CE::State::Singleton<Log<name>>

Public Static Functions

template<typename ...Args>
static inline ::CE::Logging::Log<name> &get(Args&&... args)
template<typename ...Args>
static inline ::CE::Logging::Log<name> &initialize(Args&&... args)
static inline void set_pattern(const char *fmt)
static inline std::filesystem::path get_file_path()

Declaration: [[nodiscard]]

static inline const ::CE::Logging::Config &initial_configuration()

Declaration: [[nodiscard]]

static inline ::CE::Logging::QueueStats shared_queue_stats()

Declaration: [[nodiscard]]

static inline ::CE::Logging::BackendStats backend_stats()

Declaration: [[nodiscard]]

static inline void report_diagnostics()
static inline void flush()
static inline void close(std::chrono::milliseconds timeout = std::chrono::milliseconds::zero())
static inline void reopen()
static inline void make_default()
static inline void set_level_logger(spdlog::level level)
static inline void set_level_filesink(spdlog::level level)
static inline void set_level_stdsink(spdlog::level level)
static inline bool should_log(const spdlog::level level)

Declaration: [[nodiscard]]

template<::CE::Logging::Compile::LogLevel severity, typename Write>
static inline void write_lazy(Write &&write) noexcept

Evaluate diagnostics only when compiled and admitted by a destination.

Initialization, argument preparation, and submission failures report through the emergency path instead of changing the engine operation. This is ordinary logging: call outside locks and native/noexcept paths.

template<typename ...Args>
static inline void trace(spdlog::format_string_t<Args...> fmt, Args&&... args)
template<typename ...Args>
static inline void debug(spdlog::format_string_t<Args...> fmt, Args&&... args)
template<typename ...Args>
static inline void info(spdlog::format_string_t<Args...> fmt, Args&&... args)
template<typename ...Args>
static inline void warn(spdlog::format_string_t<Args...> fmt, Args&&... args)
template<typename ...Args>
static inline void error(spdlog::format_string_t<Args...> fmt, Args&&... args)
template<typename ...Args>
static inline void critical(spdlog::format_string_t<Args...> fmt, Args&&... args)
static inline void strace(void *addr0 = nullptr)

Protected Functions

inline explicit Logger(const spdlog::file_event_handlers &event_handlers = {}, ::CE::Logging::Config config = ::CE::Logging::Config::for_logger(name))