Is it possible to log all errors to a log file using Python's logging?

20 views
Skip to first unread message

João Matos

unread,
Mar 17, 2019, 12:59:18 PM3/17/19
to web2py-users
Hello,

Is it possible to log all errors (the same ones that go to the app\errors dir) to a log file using Python's logging?


Thanks,

JM

Anthony

unread,
Mar 17, 2019, 2:29:55 PM3/17/19
to web2py-users
You can set up a custom error handler and do the logging there: http://web2py.com/books/default/chapter/29/04/the-core#Routes-on-error.

Anthony
Reply all
Reply to author
Forward
0 new messages