Skip to content

Managed Loggers

Manage other loggers, handlers, and system-wide logging behavior.


ManagedLoggers

Python
ManagedLoggers(parent_logger)

Manages other loggers and handlers in the system

active

Python
active: List[str]

List of active logger names in the logging system

info

Python
info: dict

Dictionary of attached handlers and their configurations

add

Python
add(handler_cls: Type[Handler] = logging.StreamHandler, stream: Optional[TextIOBase] = None, level: logLevels = None, formatter: Optional[Formatter] = None, force_replace: bool = False, owned: bool = True) -> logging.Handler

Add a new logging handler to the logger instance

adopt

Python
adopt(handler: Handler, preserve_formatter: bool = False) -> None

Adopt an existing handler under WrenchCL management

set_level

Python
set_level(logger_name: str, level: logLevels = 'INFO') -> None

Set the effective level for a specific named logger

silence

Python
silence(target: Union[str, List[str]]) -> None

Silence specific loggers or all others

sync

Python
sync() -> None

Force all instance handlers to match the logger's current level