x/pkgsite: support to set minimum log level #40339
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
Right now there isn't a proper way to disable a log level.
For example, if you want to disable the
Debug
logs, you need to comment out this lineI feel there should be better way to setup the minimum log level below which, no logs should be printed.
For example-
If we consider the log severity sequence as
Debug < Info < Error < Fatal
and the log level is set toInfo
, theDebug
logs shouldn't be printed butInfo
Error
&Fatal
should be printed.If allowed, I would like to work on the implementation.
/cc @julieqiu
The text was updated successfully, but these errors were encountered: