Flask app logger not working when running within gunicorn
问题 I'm trying to save application log messages from a very simple flask app in a log file. While this works flawlessly when I'm running the app with the embedded Flask server, it is not working at all when running within gUnicorn, basically, no application output is redirected neither the log file (the one specified in my Flask app) or to the STDOUT when running gunicorn. That said, this is my Flask app: @app.route('/') def index(): app.logger.debug('Into /!!!!') print 'Will this print?' return