Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 467 Bytes

File metadata and controls

34 lines (23 loc) · 467 Bytes

logparse

a no-brainer json log parser

install

  go install github.com/namp10010/logparse

copy the config.yaml to ~/.logparse

usage

  echo '{"message":"hello"}' | logparse

color output

to enable color set this config

  color: true

color setting can be found in main.go

test

cat test.log | go run .

todo

  • make the config into args and easier to use, remove the config file