Converting logging enums to constants

This commit is contained in:
jillianwilson
2023-08-03 15:39:33 -03:00
parent 5c41962aea
commit d3d0cfa281
5 changed files with 11 additions and 13 deletions

View File

@@ -3,11 +3,9 @@ package logs
// A Level is a logging priority. Lower levels are more important.
// All levels have been multipled by -1 to ensure compatibilty
// between zapcore and logr
type Level int
const (
ErrorLevel Level = iota - 2
WarnLevel
InfoLevel
DebugLevel
ErrorLevel = -2
WarnLevel = -1
InfoLevel = 0
DebugLevel = 1
)