Sep 7, 2018 · 1 min read
nice thanks!
i’m using flask_restful classes in a blueprint, so didn’t have access to the flask app. i achieved a similar result by using the above then doing something like this in a class method:
logger = logging.getLogger('flask.app').getChild(
self.__class__.__module__ + '.' + self.__class__.__name__
)logger.info('hello')