We have exception notifier set up on our server, though would like a back-up solution, if the email server is down, that would let us log exceptions in the database.
How is exception notifier listening to every method call and can I listen too?
Or.. is there a gem that already does both sending emails and logging to the database for exceptions?
Your best bet, using Exception Notifier, would be to use
rescue_from
within yourApplicationController
looking for all exceptions, then do bother your logging and a manual call to Exception Notifier.Example:
So if a controller gets an error during one of it's actions, it will go to this method, and you can save it to the DB before delivering the email.