On Sat, Jan 12, 2013 at 6:47 AM, vhochstein <vhochst...@googlemail.com> wrote:
> 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.

This is indeed an issue. Currently, our app logs to the standard Rails
logger sometimes, and to Data Dog sometimes -- these require two
different calls, and it is sometimes confusing when to use which.

This shouldn't be too much of a problem, since you can specify a new
logger for Rails.logger to use (and use per environment, if wanted).
As for having an email option, log4r seems more useful.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to