Skip to content

funbiscuit/rebunyan

Repository files navigation

rebunyan

This is a partial port of node-bunyan to Rust. Not all features are implemented, main goal is to achieve better performance and self-contained binary.

Features

  • 3 times faster than node-bunyan and doesn't require node.js
  • Input from stdin
  • Filter by level (--level option)
  • Filter by time (--after and --before options)
  • Both colored and non-colored output

Installation

From crates.io

cargo install rebunyan

From GitHub releases

Check out artifacts in the latest release

Usage

Just pipe log file or tail log from some app

cat log.log | rebunyan
some-app | rebunyan
docker compose logs some-service -f --no-log-prefix | rebunyan

To view available options pass --help option

rebunyan --help

Compare

You can compare this binary to other version (another rust port and original node-bunyan) by running ./compare.sh. You will need to install node.js first and install other binaries:

# benchmark tool
cargo install hyperfine
# rust port of node-bunyan
cargo install bunyan_view
# original node-bunyan
npm install -g bunyan

Latest results are in COMPARE.md

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published