def handle_sigusr1(signal_number, stack_frame):
 handlers = logging.getLoggerClass().manager.root.handlers
 reopen_log_files(handlers=handlers)

def handle_sigusr1 ( signal_number , stack_frame ) : handlers = logging . getLoggerClass ( ) . manager . root . handlers reopen_log_files ( handlers = handlers )
global sigusr1 signal handler which causes all the loggers to re-open log file handles .