Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirecting all Flask logs
#1
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
Reply
#2
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Flask]After login page is not redirecting me to dashboard shockwave 0 2,696 May-07-2020, 05:22 PM
Last Post: shockwave
  Looking for Flsk web page to view table with logs georgelza 2 2,453 Nov-21-2018, 05:09 PM
Last Post: georgelza
  Trying to add logs to webscraping module tjnichols 0 2,361 Jul-19-2018, 04:29 PM
Last Post: tjnichols

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020