You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want the default level to be Info, so make it zero.
Then rejigger the level numbers to match OpenTelemetry:
- Reverse the direction, so larger numbers are more severe.
- Reduce the gaps between named levels from 10 to 4.
There is still a nice mapping to verbosities: negation.
By making the zero level valid, we lose a level value that means "no
level." We could reinstate it by picking an extreme value,
like math.MinInt. Or we could just omit it; perhaps it's
not needed.
Change-Id: I0f06418b7de79fde0c172e5c9d88c707fac74601
Reviewed-on: https://go-review.googlesource.com/c/exp/+/435896
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Alan Donovan <[email protected]>
Run-TryBot: Jonathan Amsterdam <[email protected]>
Reviewed-by: Russ Cox <[email protected]>
0 commit comments