logging_config#
- caput.config.logging_config(default: str | dict | None = None) Property[str | dict][source]#
Property type that validates the caput logging config.
Allows the type to be either a string (for backward compatibility) or a dict setting log levels per module.
- Parameters:
- Returns:
- logging_config
Property A property instance setup to validate the type.
- logging_config
Examples
Should be used like:
class Project: loglevels = logging_config({"root": "INFO", "annoying.module": "WARNING"})