Skip to content

dcilke/hz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Reference Build Status

hz

Human readable streaming formatter based on zerolog.ConsoleWriter{}

Install

Go

go get github.com/dcilke/hz

Homebrew

brew tap dcilke/taps
brew install dcilke/taps/hz

Help

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

Config

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

Why?

I use zerolog for structured logging and want to be able to quickly tap into the log streams.

Looking for something similar?