An error occurred while loading the file. Please try again.
-
Pierre-Antoine Rouby authored150388af
package log
// Level represents the severity of a log entry.
type Level byte
const (
DEBUG Level = iota
INFO
NOTICE
WARNING
ERROR
CRITICAL
)
func (l Level) String() string {
switch l {
case DEBUG:
return "DEBUG"
case INFO:
return "INFO"
case NOTICE:
return "NOTICE"
case WARNING:
return "WARNING"
case ERROR:
return "ERROR"
case CRITICAL:
return "CRITICAL"
}
panic("unknown log level")
}