ruby - Padrino send errors automatically via email -


can suggest way have application errors in padrino app send these errors via email?

i have padrino mailer configured , can send test emails, have no idea how configure app send me report via mail (as logging it, of course) whenever error occurs.

thanks.

i ended using padrino-contrib gem. it, can install plugin need (of course can manually also):

padrino-gen plugin exception_notifier 

which add gem file , edit app/app.rb , boot.rb files load gem.

then in app/app.rb put like:

register padrino::contrib::exceptionnotifier   set :exceptions_from,    "noreply@domain.com"   set :exceptions_to,      "your_address.domain.com" 

and that's it.

the nice thing letting plugin install if you're more familiar rails padrino (as case) not set things you, show directives need go.

hope helps else.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -