Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

borntyping/jsonlog-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Example output

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

Authors

About

Human readable formatter for JSON logs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published