Noving log levels to variables

This commit is contained in:
jillianwilson
2023-08-03 14:31:39 -03:00
parent ffb9a4f22a
commit 63e3cd15fb
5 changed files with 24 additions and 7 deletions

13
pkg/logs/log_levels.go Normal file
View File

@@ -0,0 +1,13 @@
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
)