koopmann.lennart-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2009-Feb-12 15:53 UTC
Logging all exceptions
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe you could use callbacks? On Feb 12, 10:53 am, "koopmann.lenn...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <koopmann.lenn...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Feb 12, 2009 at 7:53 AM, koopmann.lennart-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org <koopmann.lennart-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > 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! > LennartLennart, 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] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
koopmann.lennart-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2009-Feb-14 10:51 UTC
Re: Logging all exceptions
On 14 Feb., 03:56, Robby Russell <ro...-/Lcn8Y7Ot69QmPsQ1CNsNQ@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---