Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Set Go Slog Levels with an Environment Variable (playtechnique.io)
2 points by gwynforthewyn on Aug 22, 2024 | hide | past | favorite | 1 comment


I want to set log levels using an environment variable. It's easy, but I find the go slog docs a little hard to follow, so I put together a simple example for my future reference




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: