| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
flog is a minimal, formatted, pretty logging package for Go.
It's optimized for human readability and CLIs.
slog is recommended for robust logging.
go get github.com/coder/flog
flog.Infof("hello %.3f", 1/3.0)
flog.Successf("finished that")
flog.Errorf("oops")
log := flog.New(os.Stderr).WithPrefix("user %v: ", 500)
log.Errorf("didn't work out")| Back | FazBrowse Home | New Git URL |