jlo 0.1.0

A CLI tool for reading, pretty-printing, and colorizing JSON log files (NDJSON/JSON Lines), with protocol-specific formatting for Nginx and Rust tracing logs.
jlo-0.1.0 is not a library.

jlo — JSON Logging in Plain View

Crates.io Docs.rs License: EUPL-1.2

jlo is a Rust CLI tool for reading, pretty-printing, and colorizing JSON log files (NDJSON/JSON Lines). It automatically detects and formats logs from common sources like Nginx and Rust's tracing, making structured logs easier to inspect in the terminal.

Features

  • Reads NDJSON/JSON Lines from files or stdin
  • Pretty or compact output
  • Colorizes log output by severity
  • Protocol-specific formatting for Nginx and Rust tracing logs
  • Ignores non-JSON lines

Example Usage

jlo access.log
cat app.log | jlo
cat app.log | jlo --compact --color always

Installation

Install via Cargo:

cargo install jlo

If you prefer bleeding edge:

cargo install --git https://github.com/sunsided/jlo

License

Licensed under the European Union Public Licence (EUPL), Version 1.2.