Send an event to a Changelog server
Install it yourself as:
$ gem install changelog_client
A basic usage with the built-in severities:
require 'changelog_client'
client = ChangelogClient.new('my-server-address', my-port)
client.send('This is the message', 'INFO', 'my-category')
You can pass other severity as an int:
client.send('This is the message', 8, 'my-category')
Alternatively you can add extra headers:
client.send('This is the message', 'INFO', 'misc', 'Authorization' => 'Basic b64encoded')
On success, it returs true
on failure, it returns false
.
You can pass any integer number as a severity parameter or any built-in severity string, which can be the following:
- 'INFO' - 1
- 'NOTIFICATION' - 2
- 'WARNING' - 3
- 'ERROR' - 4
- 'CRITICAL' - 5
- 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