def init_log(log_file):
    """ Creates log file on disk and "Tees" :py:class:`sys.stdout` to console and disk

    Args:
        log_file (str): The path on disk to append or create the log file.

    Returns:
        file: The opened log file.
    """
    #Create the log file
    log = None
    try:
        log = open(log_file, 'a')

        #Change the output to both the windows and log file
        #original = sys.stdout
        sys.stdout = Tee(sys.stdout, log)
    except:
        pass
    return log