nice-rs

Crates.ionice-rs
lib.rsnice-rs
version0.1.1
created_at2025-10-23 16:39:57.947836+00
updated_at2025-10-28 08:40:15.367917+00
descriptionFormat JSON log to human-readable log
homepagehttps://lnquy.com
repositoryhttps://github.com/lnquy/nice-rs
max_upload_size
id1897338
size22,184
Quy Le (lnquy)

documentation

README

nice

Format JSON log to human-readable log.
Port to Rust from nice.

Usage

$ nice-rs -h
Format JSON log to human-readable log

Usage: nice-rs [OPTIONS]

Options:
  -p, --filepath <FILEPATH>  File path to the JSON-formatted log file
  -f, --fields <FIELDS>      List of JSONPaths queries to extract fields from JSON logs, comma separated
  -c, --colors <COLORS>      Output colors for extracted fields, comma separated
  -j, --print-non-json       Print non-JSON lines
  -h, --help                 Print help
  -V, --version              Print version

Examples:
  $ nice-rs -p _data/test.log -f time,msg
  $ nice-rs -f time,msg < _data/test.log
  $ myapp | nice-rs -f time,level,msg,debug.nested.field
  $ myapp | nice-rs -f time,level,msg -c white,red,blue

Build from source

$ git clone https://github.com/lnquy/nice-rs && cd $_
$ cargo build -r

$ ./target/release/nice-rs -h

License

This project is under the MIT License. See the LICENSE file for the full license text.

Commit count: 0

cargo fmt