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