a dead simple logging interface for go
| go.mod | ||
| go.sum | ||
| readme.md | ||
| slog.go | ||
| slog_test.go | ||
slog 😩
a dead simple logging interface for go.
// printf
slog.Info("opened port %d", 3000)
// printf when a flag is true
slog.Debug(config.Verbose, "chugging away doing %s...", xyz)
// printf and continue
slog.Warn("warnin'")
// printf and exit
slog.Die("bye")
// same as above but with error conditions
slog.WarnOn(err, "something failed but it's ok")
slog.DieOn(err, "uh oh!")
all functions accept printf-like arguments