flog
flog
is a minimal, formatted, pretty logging package for Go.
It's optimized for human readability.
Uber's Zap is recommended for more robust logging.
Install
go get go.coder.com/flog
Usage
flog.Info("hello %.3f", 1/3.0)
flog.Debug("finished that")
flog.Error("oops")
log := flog.NewLogger().WithPrefix("user %v: ", 500)
log.Error("didn't work out")
produces