I'm following the excellent blog series: The Flask Mega-Tutorial https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-vii-error-handling and trying to write an error message to logger in app/main/routes.py using:
app.logger.error("Encountered an error here!")
I couldn't find an example in the blog series of where error messages were being logged. How do you import app.logger in to app/main/routes.py that was defined in app/__init__.py?