1 comment

[ 4.2 ms ] story [ 10.2 ms ] thread
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