Hatchet Hipchat
A HipChat appender for Hatchet.
Installation
Add this line to your application's Gemfile:
gem 'hatchet-hipchat'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hatchet-hipchat
Usage
Hatchet.configure do |config|
config.appenders << Hatchet::HipChatAppender.new do |appender|
appender.api_token = 'YOUR_HIPCHAT_API_TOKEN'
appender.room_id = 'YOUR_ROOM_ID'
appender.name = 'MESSAGING_NAME' # Optional - defaults to 'Hatchet'
end
end
Emoticon formatter
And if you're rage inclined (like me), there's a HipChatEmoticonFormatter
you
can use to
replace levels with rage faces:
Hatchet.configure do |config|
config.appenders << Hatchet::HipChatAppender.new do |appender|
appender.formatter = Hatchet::HipChatEmoticonFormatter.new
# Other configuration
end
end
Mapping
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