

@contextlib.contextmanager
def log_start_finish(msg, logger, level=logging.DEBUG):
    '\n    A context manager to log messages with "start: " and "finish: "\n    prefixes before and after a block.\n\n    Parameters\n    ----------\n    msg : str\n        Will be prefixed with "start: " and "finish: ".\n    logger : logging.Logger\n    level : int, optional\n        Level at which to log, passed to ``logger.log``.\n\n    '
    msg.log(level, ('start: ' + msg))
    (yield)
    logger.log(level, ('finish: ' + msg))

dataset/ETHPy150Open UDST/urbansim/urbansim/utils/logutil.py log_start_finish/VarMisuse@25/161 `logger`->`msg`