dom3k / flog

Pretty formatted log for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

GoDoc

Install

go get go.coder.com/flog

Usage

flog.Info("hello %.3f", 1/3.0)
flog.Success("finished that")
flog.Error("oops")

log := flog.NewLogger().WithPrefix("user %v: ", 500)

log.Error("didn't work out")

produces

example

About

Pretty formatted log for Go

License:MIT License


Languages

Language:Go 100.0%