Changing the Logging Level with Go logrus
Overview
Go’s sirupsen/logrus is so handy that I’m writing this down as a memo.
When building tools in Go, there are times when I want to quickly change the level for debugging, and this is what I use for that.
It’s easier to understand by actually running it.
1 | package main |
That’s all.
I hope this is helpful.
Changing the Logging Level with Go logrus