An open API service indexing awesome lists of open source software.

https://github.com/rubyonworld/logfmt-ruby

Parse log lines in the logfmt style
https://github.com/rubyonworld/logfmt-ruby

lines log parse style

Last synced: 6 months ago
JSON representation

Parse log lines in the logfmt style

Awesome Lists containing this project

README

          

# Logfmt

Parse log lines in the logfmt style:

```ruby
require "logfmt/parser"

Logfmt::Parser.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}
```