😩 a dead simple logging interface for go
go.mod | ||
readme.md | ||
slog.go |
slog 😩
a dead simple logging interface for go.
// printf
slog.Info("opened port %d", 3000)
// printf only when some flag is true
slog.Debug(config.Verbose, "chugging away doing %s...", xyz)
// printf on err and continue
slog.Warn(err, "something happened but it's ok")
// printf on err and exit
slog.Die(err, "oopsie poopsie!")
all functions accept printf-like arguments
TODO
🎨 add some color to the output