github.com/stevenmatthewt/agent@v3.5.4+incompatible/logger/level.go (about) 1 package logger 2 3 type Level int 4 5 const ( 6 INFO Level = iota 7 NOTICE 8 DEBUG 9 ERROR 10 WARN 11 FATAL 12 ) 13 14 var levelNames = []string{ 15 "INFO", 16 "NOTICE", 17 "DEBUG", 18 "ERROR", 19 "WARN", 20 "FATAL", 21 } 22 23 // String returns the string representation of a logging level. 24 func (p Level) String() string { 25 return levelNames[p] 26 }