traceviewer 0.1.3

Run a command and inspect its logs in a scrollable terminal viewer
traceviewer-0.1.3 is not a library.

traceviewer

CI crates.io

traceviewer runs a command and shows its output in a scrollable terminal log viewer.

It is useful for inspecting long-running command output while keeping recent log lines selectable, searchable by eye, and copyable from inside the terminal.

Install

Install a prebuilt binary with cargo-binstall:

cargo binstall traceviewer

Or build from source with Cargo:

cargo install traceviewer

The installed binary is named tv.

Usage

tv -- cargo test
tv --format tracing -- my-service
tv --format bunyan -- node service.js
tv --max-lines 5000 -- ./run.sh

By default, traceviewer attempts to recognize supported formats automatically. Use --format to choose one explicitly:

  • auto: detect supported formats
  • plain: show lines without parsing
  • bunyan: Bunyan JSON records
  • env-logger: common env_logger text output
  • tracing: common tracing text output

Showcase Example

The repository includes a small example app that emits representative log lines for each supported parser:

cargo run --example showcase -- env-logger
cargo run --example showcase -- tracing
cargo run --example showcase -- bunyan

Run it through tv to inspect the rendering:

cargo run --bin tv -- --format env-logger -- cargo run --example showcase -- env-logger
cargo run --bin tv -- --format tracing -- cargo run --example showcase -- tracing
cargo run --bin tv -- --format bunyan -- cargo run --example showcase -- bunyan

License

This project is licensed under the terms in LICENSE.