0.0
No commit activity in last 3 years
No release in over 3 years
Hatchet appender that sends messages to HipChat
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.2.8
~> 1.0.4
 Project Readme

Hatchet Hipchat

A HipChat appender for Hatchet.

Build Status

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

  • Content :debug
  • Wat :info
  • Oh crap :warn
  • Oh my god :error
  • Boom :fatal

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