jlo

Crates.iojlo
lib.rsjlo
version0.1.0
created_at2025-10-24 06:58:40.821118+00
updated_at2025-10-24 06:58:40.821118+00
descriptionA CLI tool for reading, pretty-printing, and colorizing JSON log files (NDJSON/JSON Lines), with protocol-specific formatting for Nginx and Rust tracing logs.
homepage
repositoryhttps://github.com/sunsided/jlo
max_upload_size
id1898088
size28,758
Markus Mayer (sunsided)

documentation

README

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.

Commit count: 0

cargo fmt