LogfmtMarshalling
A Ruby gem for emitting logfmt logging format.
logfmt (as a key-value logging format) is one flavor of structured logging.
Installation
Add this line to your application's Gemfile:
gem 'logfmt_marshalling'
And then execute:
$ bundle
Or install it yourself as:
$ gem install logfmt_marshalling
Usage
> require 'logfmt_marshalling'
=> true
> LogfmtMarshalling.marshal method: 'get', path: '/', status: 200
=> "method=get path=/ status=200"
Contributing
- Fork it ( https://github.com/MitinPavel/logfmt_marshalling/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