Skip to content

runtime

flavor.config.runtime

FlavorPack runtime configuration for CLI startup.

Classes

FlavorRuntimeConfig

Bases: RuntimeConfig

FlavorPack runtime configuration for CLI startup.

Functions

parse_log_level

parse_log_level(value: str) -> str

Validate and normalize log levels.

Source code in flavor/config/runtime.py
def parse_log_level(value: str) -> str:
    """Validate and normalize log levels."""
    normalized = value.strip().upper()
    if normalized not in VALID_LOG_LEVELS:
        raise ValueError(f"Invalid log level: {value}")
    return normalized