jsonlog-cli
A human readable formatter for JSON logs.
It's built for use with jsonlog but will work well with any log format that uses line delimited JSON.
Usage
Pass a file as the only argument to jsonlog
, or read from STDIN by default.
jsonlog docs/example.log
python docs/example.py | jsonlog
Configuration
See jsonlog --help
for all options.
Only show timestamps and messages (defaults to {timestamp} {level} {name} {message}
).
jsonlog --format "{timestamp} {message}" docs/example.log
Configure the keys of multiline values you want to display (can be specified
multiple times, and defaults to the traceback
key.)
jsonlog --format "{timestamp} {message}" docs/example.log
Configure the key to extract and use as the records level, controlling the
colour each line is printed in (defaults to the level
key).
jsonlog --format "{timestamp} {message}" docs/example.log