I don't really know that much about the interns of Rails.logger.error method but how about overwriting it for your app?
use alias on the old method and do something like this: alias :old_error :error def error # send your mail or whatever old_error end would at least do its job without braking all the stuff the logger does. Am Samstag, 12. Januar 2013 13:47:12 UTC+1 schrieb vhochstein: > > Hi, > > I would like to receive an email, if anywhere in my application a > Rails.logger.errror method is triggered. > > I know about all these exception_notfiers, but Rails.logger.error is > triggered without an exception as well in my application and these > exception_notfier gems will not catch them. > > Would be great if anybody could offer me a solution. > > Thanks a lot in advance. > > -- > Volker > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/FOmyPjD7GocJ. For more options, visit https://groups.google.com/groups/opt_out.