| Crates.io | nice-rs |
| lib.rs | nice-rs |
| version | 0.1.1 |
| created_at | 2025-10-23 16:39:57.947836+00 |
| updated_at | 2025-10-28 08:40:15.367917+00 |
| description | Format JSON log to human-readable log |
| homepage | https://lnquy.com |
| repository | https://github.com/lnquy/nice-rs |
| max_upload_size | |
| id | 1897338 |
| size | 22,184 |
Format JSON log to human-readable log.
Port to Rust from nice.
$ 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
$ git clone https://github.com/lnquy/nice-rs && cd $_
$ cargo build -r
$ ./target/release/nice-rs -h
This project is under the MIT License. See the LICENSE file for the full license text.