Python Forum

Full Version: Redirecting all Flask logs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all

Is it possible to redirect all FLASK logs to syslog (or a normal text log file) aka when run_server(debug=true) is specified

G
Flask uses the logging module: http://flask.pocoo.org/docs/1.0/logging/

It should be possible to add a custom handler, for example:
https://docs.python.org/2/library/loggin...loghandler