Sha256: 94c80a656bc62e9e7e78982d70c7c6646b410560fb4a6afd4602fa5c69bcc58f
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
# ExceptionNotifier::FluentLoggerNotifier `ExceptionNotifier::FluentLoggerNotifier` is a custom notifier for [ExceptionNotifier](http://smartinez87.github.io/exception_notification/). It sends exception notifications to [Fluentd data collector](http://fluentd.org/) via [fluent-logger](https://github.com/fluent/fluent-logger-ruby). ## Installation Add this line to your application's Gemfile: gem 'exception_notification_fluent_logger_notifier' And then execute: $ bundle Or install it yourself as: $ gem install exception_notification_fluent_logger_notifier ## Usage As other exception notifiers, add settings at the environments. Key `tag_prefix` is for the fluentd tag. Key `templete` is for setting log format and must be Hash. See also [exception_notifier's doc](http://smartinez87.github.io/exception_notification/#notifiers). ### Example ```ruby Whatever::Application.config.middleware.use ExceptionNotification::Rack, :fluent_logger => { :tag_prefix => "exceptions", :templete => { exception_class: ->(exception, options) { exception.class_name }, exception_message: -> (exception, options) { exception.messaage }, } } ``` ## 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 ## License [MIT](http://makimoto.mit-license.org/)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exception_notification_fluent_logger_notifier-0.0.1 | README.md |