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.
- 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
cargo install rebunyan
Check out artifacts in the latest release
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
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
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
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.