Parse log lines in the logfmt style.
Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib Bump version Dec 31, 2016
spec test case for pr9 (#12) Dec 30, 2016
.gitignore Bump version Dec 31, 2016
.rspec initial work May 6, 2013
.travis.yml
Gemfile initial work May 6, 2013
README.md update README to reflect lastest changes Jul 28, 2014
Rakefile Improve formatting Oct 28, 2014
bench.rb
logfmt.gemspec Improve formatting Oct 28, 2014

README.md

Logfmt

Parse log lines on the logfmt style:

>> require "logfmt"
>> Logfmt.parse('foo=bar a=14 baz="hello kitty" cool%story=bro f %^asdf')
=> {"foo"=>"bar", "a"=>14, "baz"=>"hello kitty", "cool%story"=>"bro", "f"=>true, "%^asdf"=>true}