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

Maybe you could use callbacks?

On Feb 12, 10:53 am, “[email protected]

On Thu, Feb 12, 2009 at 7:53 AM, [email protected]
[email protected] 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.

Save yourself the extra work…

Robby


Robby R.
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

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 14 Feb., 03:56, Robby R. [email protected] 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