예제 #1
0
파일: process.py 프로젝트: pierretr/e3-core
def disable_commands_handler(handler: logging.Handler) -> None:
    """Disable special handler for commands.

    :param handler: Handler returned by enable_commands_handler
    """
    logging.getLogger().removeHandler(handler)
    handler.flush()
    handler.close()
예제 #2
0
 def closeHandler(oldHandler: logging.Handler):
     oldHandler.flush()
     oldHandler.close()
     rootLogger.removeHandler(oldHandler)
예제 #3
0
 def flush(self):
     r"""
     """
     Handler.flush(self)