Bruno wrote an interesting post about integrating an application’s error logging with ticketing system you can turn bugs (that raise Exceptions) on your application into tickets ready to be taken care of by your developers.
About two years ago, I built an error logging system for a Ruby on Rails application we were developing back then. As pretty much everything in Ruby/Rails, it was really easy to do. I just needed to overwrite the log_error method in the ApplicationController catching every Exception and logging them to the database.
Once you have this setup, you can do whatever you want/need with your errors. You can send an email, write to a file…
Or… Post them as tickets to your favorite ticketing system using its API and thus keeping track of problems on your applications.
Although, there are a couple of small caveats that you should be aware of. One problem might arise if you’re getting very common yet harmless errors. An example: in a Rails app, you’ll get lots of RoutingErrors (everyone mistypes URLs every once in a while) but it doesn’t mean that something is wrong. In order to take care of this you can ignore them by creating a filter that either catches or ignores some Exceptions based on the type. Another problem could be duplication: the system should be able to filter out reports about the same error verifying that before submitting a new ticket.
Looking further at this approach, this can get to deeper levels of customization like mapping Errors of specific types into tickets with different levels of severity or automatically assigning a ticket originated on a given part of the application to the developer in charge, etc.
If you have any ideas about this subject, do leave a comment. I’ll get back to this issue soon exploring the Rails side and suggesting a solution.
Comments on this entry
You might wanna check out this system http://www.wrike.com/blog/09/19/2006/Wrike_as_online_bugtracking_softwarePart_IHow_to_create_a_new_task_via_e_mail_and_attach_a_screenshot_to_it. We use this tool, and it saves a lot of time ;)
Posted by Hugh Morrow, 8 months agoPost a comment
Required fields are bold.