Install
Requires Rust 1.88.0 or newer (edition 2024).
CLI
# Pretty-printed digest of a log file.
# JSON output for a dashboard.
# Read from stdin (e.g. piped from `rlg`).
| |
# Keep only the top 3 description buckets.
Sample output
── rlg report ───────────────────────────────────────────
total records: 18421
unparseable lines: 0
── by level ─────────────────
INFO 16842
WARN 912
ERROR 640
FATAL 27
── by component ─────────────
api 12001
db 3920
orchestrator 2500
── top descriptions ─────────
1240 GET /v1/users -> 200
320 POST /v1/orders -> 201
274 user authenticated
...
── latency (ms) ─────────────
samples 16980
p50 14
p95 82
p99 210
max 4012
Library mode
use Report;
let lines: = my_log_lines;
let report = from_lines;
println!;
if let Some = report.latency
License
Dual-licensed under Apache 2.0 or MIT, at your option.