Skip to main content

Human readable formatter for JSON logs.

Project description

legere

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 legere, or read from STDIN by default.

legere docs/example.log
python docs/example.py | legere

Configuration

See legere --help for all options.

Only show timestamps and messages (defaults to {timestamp} {level} {name} {message}).

legere --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.)

legere --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).

legere --format "{timestamp} {message}" docs/example.log

Authors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
legere-1.1.0-py2.py3-none-any.whl (5.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3
legere-1.1.0.tar.gz (4.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page