A minimal, simplistic, and likely dangerous wrapper around liblognorm, a library for normalizing logs.
Add this line to your application's Gemfile:
gem 'lognorm'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lognorm
# Initialize the library context
ctx = Lognorm.initCtx
# Load some rules from a file
ctx.loadSamples('sample.ruleset')
# Feed it a logline, get a ruby hash back
result = ctx.normalize(log_line)
- Fork it ( https://github.com/[my-github-username]/ruby-lognorm/fork )
- 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 a new Pull Request