2 releases
Uses new Rust 2024
| 0.1.1 | Oct 28, 2025 |
|---|---|
| 0.1.0 | Oct 23, 2025 |
#95 in Value formatting
9KB
157 lines
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.
Dependencies
~2.4–5.5MB
~103K SLoC