def log_stop ( logger ) : handlers = logger . handlers [ : ] for handler in handlers : handler . close ( ) logger . removeHandler ( handler )
python logger do i have to close prior to my python script exiting
log stop
def log_stop(logger):
    """log stop"""

    handlers = logger.handlers[:]
    for handler in handlers:
        handler.close()
        logger.removeHandler(handler)