Ruby on Rails Tuesday, January 21, 2014

You could use exception_notification gem for this. Link here https://github.com/smartinez87/exception_notification


On Tue, Jan 21, 2014 at 8:54 PM, Greg Akins <angrygreg@gmail.com> wrote:
I'd like to implement something in my application where the last n lines of the development log are included in an email when an error occurs.  

Right now the application triggers an email using an application controller method that has be inserted into a rescue block.

Maybe I should just use "File" to grab the tail end of the development.log file and insert it into the email?

But I'm wondering if maybe there is a better approach or if anyone has a gem that does this automatically.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAC5Qo_0NkmnfqdfRshtD2Mfv8%2BBaa7jHwVZGMyZwqnj%3D7DPu2w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks,
Prince

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAD%3DOR22r3fhhc-_QB-7RTKP74JFdQNrAaRHdsCTaOhQVJCD1rg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment