logman 0.1.0
Modern C++23 header-only logging manager wrapping spdlog with channels, listeners, and structured events
Loading...
Searching...
No Matches
env_prefixes.hpp File Reference

Compile-time list of env-var prefixes the runtime scans. More...

#include <array>
#include <span>
#include <string_view>
Include dependency graph for env_prefixes.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

constexpr std::span< const std::string_view > logman::default_env_prefixes
 Prefixes (including the trailing underscore) the runtime scans for env vars during LogManager::initialize().
 

Detailed Description

Compile-time list of env-var prefixes the runtime scans.

Generated by CMake from the LOGMAN_ENV_PREFIXES cache variable. "LOGMAN_" is always included unconditionally.

Variable Documentation

◆ default_env_prefixes

constexpr std::span<const std::string_view> logman::default_env_prefixes
inlineconstexpr
Initial value:
{
detail::k_default_env_prefixes_storage}

Prefixes (including the trailing underscore) the runtime scans for env vars during LogManager::initialize().

Always includes LOGMAN_; consumers may append more via the LOGMAN_ENV_PREFIXES CMake cache variable, or extend InitConfig::env_prefixes at runtime.