Struct Config

Struct Documentation

struct Config

Initial destination and per-Log queue configuration.

Levels may change while open; destination/rotation/overflow changes require a new owned Log or the singleton’s first initialization. Off suppresses output but does not avoid opening the file. Configure before starting producers.

Public Members

std::filesystem::path directory = {"logs"}
std::size_t rotation_bytes = 10 * 1024 * 1024
std::size_t retained_files = 5
bool rotate_on_open = true
spdlog::level logger_level = ::CE::Logging::Compile::profile == 2 ? spdlog::level::info : spdlog::level::debug
spdlog::level file_level = ::CE::Logging::Compile::profile == 2 ? spdlog::level::info : spdlog::level::debug
spdlog::level console_level = ::CE::Logging::Compile::profile == 0 ? spdlog::level::info : spdlog::level::warn
::CE::Logging::OverflowPolicy overflow_policy = ::CE::Logging::OverflowPolicy::Block

Public Static Functions

static inline Config for_logger(const char *name, const ::CE::Logging::Profile profile = static_cast<::CE::Logging::Profile>(::CE::Logging::Compile::profile))

Declaration: [[nodiscard]]