Human readable streaming formatter based on zerolog.ConsoleWriter{}
go get github.com/dcilke/hz
brew tap dcilke/taps
brew install dcilke/taps/hz
hz --help
Usage:
hz [FILE]
Application Options:
-l, --level= only output lines at this level
-s, --strict exclude non JSON output
-f, --flat flatten objects
-v, --vertical vertical output
-r, --raw raw output
-n, --no-pin exclude pinning of fields
Help Options:
-h, --help Show this help message
Default command options can be specified in a config file located at $HOME/.config/hz/config.yml
.
level:
- trace
- debug
- info
- warn
- error
- fatal
- panic
strict: false
flat: false
vertical: false
plain: false
noPin: false
I use zerolog for structured logging and want to be able to quickly tap into the log streams.