(self)
return root_logger
Reset root logger.
Reset root logger.
Reset root logger .
def reset(self):
        """Reset root logger."""
        # o dear o dear what a horrible API
        root_logger = logging.getLogger()
        # remove all old handlers: temporary ones we set as well as any default ones
        for handler in root_logger.handlers:
            root_logger.removeHandler(handler)
        return root_logger
def reset ( self ) : # o dear o dear what a horrible API root_logger = logging . getLogger ( ) # remove all old handlers: temporary ones we set as well as any default ones for handler in root_logger . handlers : root_logger . removeHandler ( handler ) return root_logger