问题
How do I hijack Rails (3) error handling to email errors with full trace to me?
回答1:
Have your considered HopToad?
UPDATE: HopToad is now known as Airbrake
回答2:
Exception Notifier Plugin for Rails https://github.com/smartinez87/exception_notification
回答3:
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
回答4:
- Hoptoad: http://hoptoadapp.com/pages/home
- ErrorApp: http://errorapp.com/
- ExceptionNotifier: https://github.com/smartinez87/exception_notification
来源:https://stackoverflow.com/questions/6441018/rails-3-sending-errors-to-email