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
- Host: GitHub
- URL: https://github.com/rubyonworld/logfmt-ruby
- Owner: RubyOnWorld
- Created: 2022-09-27T15:29:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T18:28:33.000Z (over 3 years ago)
- Last Synced: 2025-09-08T20:33:06.228Z (6 months ago)
- Topics: lines, log, parse, style
- Language: Ruby
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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}
```