def log_task(<EOL>task, logger=logging, level='<STR_LIT:info>', propagate_fail=True, uuid=None<EOL>):
def decorator(func):<EOL><INDENT>@wraps(func)<EOL>def wrapper(*args, **kwargs):<EOL><INDENT>with LogTask(<EOL>task,<EOL>logger=logger,<EOL>level=level,<EOL>propagate_fail=propagate_fail,<EOL>uuid=uuid<EOL>):<EOL><INDENT>return func(*args, **kwargs)<EOL><DEDENT><DEDENT>return wrapper<EOL><DEDENT>return decorator<EOL>
Parameterized decorator to wrap a function in a log task

Example:
    >>> @log_task('mytask')
    ... def do_something():
    ...     pass