

def log_to_file(filename, level=None, fmt=None, datefmt=None):
    '\n    Send log output to the given file.\n\n    Parameters\n    ----------\n    filename : str\n    level : int, optional\n        An optional logging level that will apply only to this stream\n        handler.\n    fmt : str, optional\n        An optional format string that will be used for the log\n        messages.\n    datefmt : str, optional\n        An optional format string for formatting dates in the log\n        messages.\n\n    '
    _add_urbansim_handler(logging.FileHandler(filename), fmt=fmt, datefmt=datefmt)

dataset/ETHPy150Open UDST/urbansim/urbansim/utils/logutil.py log_to_file/original