logc
Converts fortio.org/log JSON structured log back to console/text output with colors
Example
go run ./levelsDemo 2>&1 | logc
If you don't want colors; pass -no-color
Installation
If you have a recent go installation already:
CGO_ENABLED=0 go install fortio.org/logc@latest
Or get one of the binary releases
Or using the docker image
docker run fortio/logc
Or using brew (mac)
brew install fortio/tap/logc
Development
run both
make
which is go test -v ./...
and
make manual-check
which generates colorized and properly escaped/converted output