How To Install Rick Olson's RoR Exception Logger

I’m sitting next to Rick Olson outside of the packed AJAX session here at Railsconf, and he just showed me his awesome new Exception Logger.

If you’re not using this yet (there’s good chance of that, it’s only been public for 7 hours), you need to check it out.

To install it, first make sure that you have Rick’s plugins in your plugin’s source:

script/plugin source http://svn.techno-weenie.net/projects/plugins

Next, install the plugin:

script/plugin install exception_logger

And finally, generate and run the built-in migration to create its table:

script/generate exception_migration
rake migrate

Lastly, you’ll want to add an include to application.rb (beneath the class definition) like so:

include ExceptionLoggable

That’s it.

More articles in the Archive →