Plugins - Exception Logger

StarAdd to favorites

The Exception Logger logs your Rails exceptions in the database and provides a funky web interface to manage them.

First you need to generate the migration:

  ./script/generate exception_migration

After that, visit /logged_exceptions in your application to manage the exceptions.

Rick Olson

http://svn.techno-weenie.net/projects/plugins/exception_logger/

Rails' (MIT)

  • Currently 4.1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment
erwin 8 May 2008

running with config.actioncontroller.sessionstore = :activerecordstore (no cookie based session)

my config.actioncontroller.session :secret is defined, and protectfrom_forgery :secret => 'secretpass' is defined in my application.rb

got an ActionController::InvalidAuthenticityToken in Logged_exceptions#index

No :secret given to the #protectfromforgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store)

the formremotetag in logged_exceptions/index.rhtml (line 53) is not sending the :secret

I had the same problem with another Ajax call form, solved by writing <%= javascripttag "window.token = '#{formauthenticitytoken}'" %> in the <head> tried it there but no result

Eliot 23 Apr 2008

I was getting a "flag after width" error message which was stopping the exceptions from being persisted to the database.

The fix for this was to replace %*-s with %-s (that is, remove the asterix) on line 49 of logged_exception.rb.

My environment: Rails 2.0.2 Windows XP

Guillaume 21 Apr 2008

Just a reply to Hans comment, it's viewpath ==> templateroot method that needs to be rename in the plugin directory, init.rb file.

Hans verschooten 14 Sep 2007

I changed viewpaths to templateroot in init.rb, then rake db:migrate. And added the following to the routes map.connect '/loggedexceptions', :controller => 'loggedexceptions'

And got it to work under Rails 1.2.3

Robert R 25 Jul 2007

I get the same exact error and 5 hours still can't figure out what is going on? Rails is theoretically interesting but it is really sucking up my time as far as chasing down every little error. I don't understand

Chris G 21 May 2007

Rails 1.2.3 + Ruby 1.8.6 ruby script/generate exception_migration Gives the error: ./script/../config/../vendor/plugins/exceptionlogger/init.rb:1:in load_plugin': undefined methodviewpaths=' for LoggedExceptionsController:Class (NoMethodError)

saidulu 22 Feb 2007

Missing template script/../config/../app/views/hello/index.rhtml

Carl 7 Aug 2006

I get this when I try to go to /logged_exceptions

Template is missing

Missing template script/../config/../app/views/logged_exceptions/index.rhtml

Any idea why?

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?