Skip to main content

Human readable formatter for JSON logs.

Project description

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

Project details


Download files

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

Source Distribution

jsonlog-cli-1.2.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

jsonlog_cli-1.2.1-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jsonlog-cli-1.2.1.tar.gz.

File metadata

  • Download URL: jsonlog-cli-1.2.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for jsonlog-cli-1.2.1.tar.gz
Algorithm Hash digest
SHA256 3e319fbe35ffb8af27ca2cbbfdd1d36a88b7c5fc7d9b9f984524a4e1ae9a6502
MD5 994d85598cc0bbad1bc9893586cb9fc6
BLAKE2b-256 bd5e620c63064f7b4c9aff23c3a870f37861e1775cd3ed08e4514ec4d3fd24ab

See more details on using hashes here.

File details

Details for the file jsonlog_cli-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: jsonlog_cli-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for jsonlog_cli-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 463168cdc723a5caae820bef2110d908769178359b4fe1071d9c3dd1d8984358
MD5 a21c4f9e5e4bed634dff43b455c0db8d
BLAKE2b-256 82972617ec7722279e5a01e2f27fe381b58e62af8ed8f39e3ee2a305cb14b1cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page