Redirecting all Flask logs - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Redirecting all Flask logs (/thread-9601.html) |
Redirecting all Flask logs - georgelza - Apr-18-2018 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 RE: Redirecting all Flask logs - thomasp - Nov-21-2018 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/logging.handlers.html#sysloghandler |