Hey everyody, what is the best way to log _all_ exceptions that are thrown in my Rails application into a database table? I need some kind of hook in the Rails exception methods?! I already tried the Exception Logger plugin but that is not what I want. I just want to log _all_ exceptions into a database table without needing to call own methods everywhere I expect an exception. Thank you! Lennart
on 2009-02-12 16:59
on 2009-02-14 02:47
Maybe you could use callbacks? On Feb 12, 10:53 am, "koopmann.lenn...@googlemail.com"
on 2009-02-14 03:57
On Thu, Feb 12, 2009 at 7:53 AM, firstname.lastname@example.org <email@example.com> wrote: > I just want to log _all_ exceptions into a database table without > needing to call own methods everywhere I expect an exception. > > Thank you! > Lennart Lennart, You might consider using Exceptional for this. * http://getexceptional.com/ Save yourself the extra work... Robby -- Robby Russell Chief Evangelist, Partner PLANET ARGON, LLC design // development // hosting w/Ruby on Rails http://planetargon.com/ http://robbyonrails.com/ http://twitter.com/planetargon aim: planetargon +1 503 445 2457 +1 877 55 ARGON [toll free] +1 815 642 4068 [fax]
on 2009-02-14 11:52
On 14 Feb., 03:56, Robby Russell <ro...@planetargon.com> wrote: > You might consider using Exceptional for this. > > *http://getexceptional.com/ Thank you, Robby. The problem is that I want to build the database exception logging into the Rails web interface of a free software project. (www.scopeport.org) I don't want to force users to subscribe to another service if they want help. (But Exceptional looks very cool. I might consider using it for other projects) I will take a look at the callback thing. Thank you pepe. So long Lennart