Bottom Page

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
Quote
#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
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Flask: Making my first web site Truman 37 1,616 Yesterday, 02:02 PM
Last Post: snippsat
  Web development using Flask and Python kirito85 4 324 Jun-14-2019, 02:13 AM
Last Post: kirito85
  [Flask] html error 405 SheeppOSU 0 184 Jun-08-2019, 04:42 PM
Last Post: SheeppOSU
  [Flask] No application found. SheeppOSU 1 299 Jun-01-2019, 02:58 PM
Last Post: SheeppOSU
  Python, flask, Django Ecniv 5 400 May-02-2019, 04:04 PM
Last Post: buran
  Flask tutorial: kintarowonders 1 553 Mar-27-2019, 07:37 PM
Last Post: nilamo
  About Error (Flask) bescf 1 305 Mar-20-2019, 08:18 PM
Last Post: nilamo
  Deploy flask app on Heroku Prince_Bhatia 0 456 Feb-20-2019, 09:05 AM
Last Post: Prince_Bhatia
  Flask assertion error mebaysan 1 537 Feb-07-2019, 08:34 PM
Last Post: pascale
  How to deploy flask on wamp Prince_Bhatia 1 749 Jan-30-2019, 02:48 PM
Last Post: snippsat

Forum Jump:


Users browsing this thread: 1 Guest(s)