hz

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 8 Imported by: 0

README

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?

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL