def __remove_null_logging_handler():
 global LOGGING_NULL_HANDLER
 if (LOGGING_NULL_HANDLER is None):
  return
 root_logger = logging.getLogger()
 for handler in root_logger.handlers:
  if (handler is LOGGING_NULL_HANDLER):
   root_logger.removeHandler(LOGGING_NULL_HANDLER)
   LOGGING_NULL_HANDLER = None
   break

def __remove_null_logging_handler ( ) : global LOGGING_NULL_HANDLER if ( LOGGING_NULL_HANDLER is None ) : return root_logger = logging . getLogger ( ) for handler in root_logger . handlers : if ( handler is LOGGING_NULL_HANDLER ) : root_logger . removeHandler ( LOGGING_NULL_HANDLER ) LOGGING_NULL_HANDLER = None break
this function will run once the temporary logging has been configured .