package logging // Level defines the logging level. type Level int // Available logging levels. const ( Debug Level = iota Info Warn Error ) func (l Level) String() string { switch l { case Debug: return "DEBUG" case Info: return "INFO" case Warn: return "WARN" case Error: return "ERROR" default: return "UNKNOWN" } }