😩 a dead simple logging interface for go
Find a file
2024-08-27 10:15:00 -05:00
go.mod update module URL 2024-08-27 10:15:00 -05:00
readme.md update 2023-07-07 15:04:17 -05:00
slog.go update 2023-07-07 15:04:17 -05:00

slog 😩

a dead simple logging interface for go.

// printf
slog.Info("opened port %d", 3000)

// printf on err and continue
slog.Warn(err, "something happened but it's ok")

// printf on err and exit
slog.Die(err, "oopsie poopsie!")

Warn and Die only do stuff when err is not nil.

TODO

🎨 add some color to the output