exception_notification-td
Installation
Add this line to your application's Gemfile:
gem 'exception_notification-td'
And then execute:
$ bundle
Or install it yourself as:
$ gem install exception_notification-td
Usage
In Rails, first set up normal td config and then:
# in config/environments/#{env}.rb
config.middleware.use ExceptionNotification::Rack,
td: {
table_name: "#{Rails.env}_exceptions",
}
In some other rack apps, you need to set more options:
use ExceptionNotification::Rack,
td: {
table_name: "#{env}_exceptions",
database: "yourdb",
apikey: "deadbeaf12345678"
}
Contributing
- Fork it ( https://github.com/udzura/exception_notification-td/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request