Crates.io | bunyan_view |
lib.rs | bunyan_view |
version | 0.3.3 |
source | src |
created_at | 2021-11-30 02:01:21.271797 |
updated_at | 2022-12-27 21:51:31.539479 |
description | A full-featured port of the Node Bunyan structured log file viewer |
homepage | https://github.com/dekobon/bunyan-view |
repository | https://github.com/dekobon/bunyan-view |
max_upload_size | |
id | 489567 |
size | 405,907 |
This project is a rewrite of the node-bunyan bunyan format log viewer CLI tool fully reimplemented in Rust.
Bunyan Viewer aims to be a stand-alone replacement for the node bunyan tool such that it:
We aim to provide output that is as close as possible to the node-bunyan viewer with a few intentional divergences.
Bunyan Viewer supports the following features:
-o, --output
flag):
bunyan
: 0 indented JSON, bunyan's native formatinspect
: node.js util.inspect
outputjson
: JSON output, 2-space indentjson-N
: JSON output, N-space indent, e.g. "json-4"long
: (the default) prettyshort
: like "long", but more concisesimple
: level, followed by "-" and then the message`--condition
flag)-L, --time-local
flag)-l, --level
flag)--strict
flag)--color
flag)--pager
flag)Bunyan Viewer does not yet support the following:
-p
flag)Install the Bunyan Viewer into your Cargo Crates enabled environment by installing the crate:
cargo install bunyan_view
Directly viewing one or more bunyan log files:
bunyan logs/logs-001.log logs/logs-002.log logs/big-log-003.log.gz
View logs via piped input:
cat logs/logs-001.log | bunyan
Alternatively:
bunyan < logs/logs-001.log
For additional usage help:
bunyan --help
When running the automated testing suite, be sure to enable the dumb_terminal
feature so that colorization is
disabled. You can do this by invoking cargo test
as follows:
cargo test --features dumb_terminal
This project is licensed under the Mozilla Public License Version 2.0. See the LICENSE.txt file for more details.