😩 a dead simple logging interface for go
Find a file
2024-10-08 12:32:12 -05:00
go.mod update module URL 2024-08-27 10:15:00 -05:00
readme.md add Debug function 2024-10-07 23:46:39 -05:00
slog.go lmao i forgot to commit the actual Debug code before 2024-10-08 12:32:12 -05:00

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