"""
    Helper for moving and resetting handlers and other logger attrs.
    :meta private:
    """
    def __init__(self, logger: logging.Logger) -> None:
        self.handlers = logger.handlers[:]
        self.level = logger.level
        self.propagate = logger.propagate
        self.source_logger = logger
    def apply(self, logger: logging.Logger, replace: bool = True) -> None: