Skip to content

Defaults

provide.foundation.logger.defaults

TODO: Add module docstring.

Classes

Functions

default_logging_config

default_logging_config() -> LoggingConfig

Factory for LoggingConfig instance.

Source code in provide/foundation/logger/defaults.py
def default_logging_config() -> LoggingConfig:
    """Factory for LoggingConfig instance."""
    from provide.foundation.logger.config.logging import LoggingConfig

    return LoggingConfig.from_env()

default_module_levels

default_module_levels() -> dict[str, str]

Factory for module log levels dictionary.

Source code in provide/foundation/logger/defaults.py
def default_module_levels() -> dict[str, str]:
    """Factory for module log levels dictionary."""
    return {
        "asyncio": "INFO",  # Suppress asyncio DEBUG messages (e.g., selector events)
    }

default_rate_limits

default_rate_limits() -> dict[str, tuple[float, float]]

Factory for per-logger rate limits dictionary.

Source code in provide/foundation/logger/defaults.py
def default_rate_limits() -> dict[str, tuple[float, float]]:
    """Factory for per-logger rate limits dictionary."""
    return {}