No commit activity in last 3 years
No release in over 3 years
Custom notifier for ExceptionNotification to send notification via Hato
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

 Project Readme

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 server
  • port is the port of the server (optional, default is 9699)
  • 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, options) { "exception.#{exception.class}" },
        message: ->(exception, options) { "Exception: #{exception.class}: #{exception.message}" },
    },
  }

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request