Skip to main content
Logging settings + setup, co-located with the logging util. Side-effect-free on import: the consumer calls setup_logging(...) explicitly (e.g. at app startup) — importing this package configures nothing on its own.

LoggingSettings

tai42_kit.logging.settings.LoggingSettings
Attributes

Members

validate_log_level

tai42_kit.logging.settings.LoggingSettings.validate_log_level
Parameters

is_enabled_for

tai42_kit.logging.settings.LoggingSettings.is_enabled_for
Parameters

logging_settings

tai42_kit.logging.settings.logging_settings

setup_logging

tai42_kit.logging.logger.setup_logging
Configure the ROOT logger for an application. Call this from application startup only — never on library import, since it reconfigures the process-global root logger. force=True replaces the existing root handlers, so a repeat call (e.g. after a settings reload) applies the new level instead of being silently ignored. Parameters