/logfmt

JSONL pretty-printer

Primary LanguageGoMIT LicenseMIT

JSONL → logfmt

This command-line tool reads JSON lines from stdin and prints something like logfmt to stdout. Keys are highlighted if stdout is a terminal. Non-JSON lines are printed to stderr. Pass -x <glob> to ignore keys.

$ echo '{"at":"hello"}' | go run github.com/jbarnette/logfmt
at=hello