def METHOD_NAME(func):
    def caller(*args, **kwargs):
        request = None
        for arg in args:
            if isinstance(arg, HttpRequest):
                request = arg
                break
        if 'logger' not in kwargs:
            kwargs['logger'] = get_logger(name, request)
        return func(*args, **kwargs)
    return caller