()
Close the log file.
Close the log file.
Close the log file .
def closelog():
    """Close the log file."""
    global log, logfile, logfp
    logfile = ''
    if logfp:
        logfp.close()
        logfp = None
    log = initlog
def closelog ( ) : global log , logfile , logfp logfile = '' if logfp : logfp . close ( ) logfp = None log = initlog