Exception logging in Pylons
Is there a way to create a middleware that will catch every raised exception and print the stacktrace both to log and stdou开发者_开发知识库t (possibly with some additional information) in Pylons framework?
Standard paste.exceptions.errormiddleware.ErrorMiddleware already does this, and even a little more.
精彩评论