

def _add_urbansim_handler(handler, level=None, fmt=None, datefmt=None, propagate=None):
    '\n    Add a logging handler to urbansim.\n\n    Parameters\n    ----------\n    handler : logging.Handler subclass\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    propagate : bool, optional\n        Whether the urbansim logger should propagate. If None the\n        propagation will not be modified, otherwise it will be set\n        to this value.\n\n    '
    if (not fmt):
        fmt = US_LOG_FMT
    if (not datefmt):
        datefmt = US_LOG_DATE_FMT
    handler.setFormatter(logging.Formatter(fmt=fmt, datefmt=datefmt))
    if (level is not None):
        handler.setLevel(level)
    logger = logging.getLogger('urbansim')
    logger.addHandler(handler)
    if (propagate is not None):
        logger.propagate = level

dataset/ETHPy150Open UDST/urbansim/urbansim/utils/logutil.py _add_urbansim_handler/VarMisuse@120/373 `propagate`->`level`