exception_notification-hato_notifier
ExceptionNotifier::HatoNotifier
is a custom notifier for Exception Notification. It sends exception notification via Hato.
Usage
As other exception notifiers, add settings at the environments:
host
is the host of Hato serverport
is the port of the server (optional, default is9699
)api_key
is to set the API key if the server requires it (optional)template
is to set templates for tag and message to be sent to Hato
Example
Whatever::Application.config.middleware.use ExceptionNotification::Rack,
hato: {
host: 'localhost',
port: 9699,
api_key: 'YOUR API KEY',
template: {
tag: ->(exception, ) { "exception.#{exception.class}" },
message: ->(exception, ) { "Exception: #{exception.class}: #{exception.}" },
},
}
Installation
Add this line to your application's Gemfile:
gem 'exception_notification-hato_notifier'
And then execute:
$ bundle
Or install it yourself as:
$ gem install exception_notification-hato_notifier
Contributing
- Fork it
- 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 new Pull Request