Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Exception report library

Reply
Thread Tools

Exception report library

 
 
Ian Bicking
Guest
Posts: n/a
 
      01-07-2005
I've been using one of several systems to catch unexpected exceptions
and log them (e.g., write to a file, display on web page, email me,
etc). But many are built into a particular system, or have an
interesting but incomplete set of features. E.g., many web frameworks
have exception reporters (and the stdlib includes cgitb), but I want to
handle non-web exceptions in the same way as exceptions from web
requests, and that's not generally easy.

So, I'm figuring there should be some generic library that does this.
Does anyone have experience with one they could recommend? PyCrash
comes to mind: http://pycrash.sourceforge.net/, though the XML output
doesn't excite me (but the post-mortem debugging data is nice). py.test
makes nice tracebacks with extra data as well, and cgitb is another
option, though I've found the code to be poorly factored for reusability
when I've looked at it in the past. Zope includes an
otherwise-Zope-neutral ExceptionFormatter, which isn't terribly
exciting, except that it does look for __traceback_info__ local
variables and create reports with those inlined. Maybe there's
something better that's packaged as part of a larger framework? Does
anyone have good or bad experience with PyCrash?

Localized application extensibility is really useful to me as well; for
instance, in a web application I like to know who the logged-in user is,
and all sorts of environment information, and there's no way to do that
that is common to all the environments I'd like this to work in. On the
reporting end configuration and hooks are also really useful; e.g.,
there's no general way to display an exception report on a web page, so
a web framework would have to hook into it in some way as well.

I feel like there must be something out there, since every Python
programmer has to deal with this sort of thing to some degree...?

--
Ian Bicking / http://www.velocityreviews.com/forums/(E-Mail Removed) / http://blog.ianbicking.org
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
while executing my client program i get the exception javax.naming.LinkException: [Root exception is javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining if plz anybody know how to solve this problem then mahesh Java 0 03-08-2007 12:26 PM
Crysatl report load report failed Meheraj shaik via .NET 247 ASP .Net 1 06-07-2005 08:29 AM
Load Report Fails on ASP.NET app when report is on a different ser =?Utf-8?B?aHVicmlzdGljYm9i?= ASP .Net 1 03-17-2005 01:24 PM
Setting a Range Parameter in a crystal report and streaming resulting report as a pdf James Wallace ASP .Net 0 10-17-2003 04:42 PM



Advertisments