(num=2)
A context manager which will cause the log output to be indented for any
    log messages emitted inside it.
A context manager which will cause the log output to be indented for any
    log messages emitted inside it.
A context manager which will cause the log output to be indented for any log messages emitted inside it .
def indent_log(num=2):
    """
    A context manager which will cause the log output to be indented for any
    log messages emitted inside it.
    """
    _log_state.indentation += num
    try:
        yield
    finally:
        _log_state.indentation -= num
def indent_log ( num = 2 ) : _log_state . indentation += num try : yield finally : _log_state . indentation -= num