This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients pitrou, rhettinger, skip.montanaro, vinay.sajip, xiang.zhang
Date 2017-04-06.18:47:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491504448.74.0.512359642349.issue29955@psf.upfronthosting.co.za>
In-reply-to
Content
> and provides no straightforward API for me to reconfigure its logger.

As far as I know, you just need to do something which configures a Flask logger, then call logging.config.dictConfig() with a suitable configuration which doesn't disable existing loggers and configures the Flask logger how you want. (The dictConfig call should replace any existing configuration with what you've passed to it). See this:

https://stackoverflow.com/questions/11816236/how-to-config-flask-app-logger-from-a-configure-file
History
Date User Action Args
2017-04-06 18:47:28vinay.sajipsetrecipients: + vinay.sajip, skip.montanaro, rhettinger, pitrou, xiang.zhang
2017-04-06 18:47:28vinay.sajipsetmessageid: <1491504448.74.0.512359642349.issue29955@psf.upfronthosting.co.za>
2017-04-06 18:47:28vinay.sajiplinkissue29955 messages
2017-04-06 18:47:28vinay.sajipcreate