Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Set Go Slog Levels with an Environment Variable
(
playtechnique.io
)
2 points
by
gwynforthewyn
on Aug 22, 2024
|
hide
|
past
|
favorite
|
1 comment
gwynforthewyn
on Aug 22, 2024
[–]
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: