0.0
No commit activity in last 3 years
No release in over 3 years
Post errors to an http server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.7.3
~> 1.4.1
~> 1.6.7
 Project Readme

ErrorNotifier

Posts exceptions to a web service. Useful for use in Rack applications.

Configuration

Configure ErrorNotifier via ErrorNotifier.configure:

ErrorNotifier.configure do |config|
  config.url = 'http://health.mysite.com/errors'
  config.site = 'mysite' #an identifier for this site
end

Sending

Use ErrorNotifier.send to send exceptions:

ErrorNotifier.send(e)
# or, with options
ErrorNotifier.send(e, {:user => @current_user})

Rack

ErrorNotifier::Rack is a rack middleware which will capture exceptions and post them to the specified site. For example, in Rails, once need only specify:

config.middleware.use ErrorNotifier::Rack

within application.rb