matheusfillipe / jsonlf

Json line stream formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pypi

jsonlf

This is a json line formarter. It expects a valid json on stdin and outputs it pretty-printed and uses pygments for highlighting. It will also attempt to format python tracebacks.

Installation

pip install jsonlf

Usage

some_command_that_logs_json_lines | jsonlf

You can use pygments styles listed here: https://pygments.org/styles/ Just pass their names as the first argument. Example:

some_command_that_logs_json_lines | jsonlf emacs

About

Json line stream formatter

License:Other


Languages

Language:Python 100.0%