def set_hooks(app, hook_setters=None):
    """Set hooks on a Flask application

    Example: Adding a hook

    .. doctest::
        >>> from flask import Flask, request, current_app

        >>> app = Flask(__name__)

        >>> def set_log_request_hook(app):
        ...     @app.before_request
        ...     def log_request():
        ...         current_app.logger.debug(request)

        >>> my_hook_setters = [set_log_request_hook]

        >>> set_hooks(app, my_hook_setters)

    :param app: Flask application
    :type app: :class:`flask.Flask`
    :param hook_setters: Hooks to set on the application.
        Expects a list of functions that takes a :class:`flask.Flask` as argument
    :type hook_setters: list
    """
    hook_setters = hook_setters or []
    for set_hook in hook_setters:
        set_hook(app)
