Rails 3 Sending errors to email

末鹿安然 提交于 2019-12-30 10:16:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!