Groups
Sign in
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
Is it possible to log all errors to a log file using Python's logging?
20 views
debugging
error
Skip to first unread message
João Matos
unread,
Mar 17, 2019, 12:59:18 PM
3/17/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
3/17/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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