How do I hijack Rails (3) error开发者_高级运维 handling to email errors with full trace to me?
Exception Notifier Plugin for Rails https://github.com/smartinez87/exception_notification
Have your considered HopToad?
UPDATE: HopToad is now known as Airbrake
Haven't done it myself yet, but you should be able to use the log4r gem and substitute that for the stock rails logger. This can be done in environment.rb
, see for example this blog post.
Then you would instruct log4r
to send emails on errors, see documentation
- Hoptoad: http://hoptoadapp.com/pages/home
- ErrorApp: http://errorapp.com/
- ExceptionNotifier: https://github.com/smartinez87/exception_notification
精彩评论