Skip to content

runtime

πŸ€– AI-Generated Content

This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.

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