In Flask: How to access app Logger within Blueprint

inside the blueprint add:

from flask import current_app

and when needed call:

current_app.logger.info('grolsh')

Btw, I use this pattern:

# core.py
from werkzeug.local import LocalProxy
from flask import current_app

logger = LocalProxy(lambda: current_app.logger)


# views.py
from core import logger

@mod.route("/")
def index():
    logger.info("serving index")
    ...