Lightweight logging library in Go supporting info, warn, and error levels.
Output can be plain text or JSON.
Add this module to your project or copy logger.go.
log := logger.New("info", "json")level: minimum level (info,warn,error).fmtType: output format (textorjson).
Run the example:
go run ./example