func (lvl Level) String() string {
	switch lvl {
	case Panic:
		return "panic"
	case Fatal:
		return "fatal"
	case Error:
		return "error"
	case Warn:
		return "warn"
	case Info:
		return "info"
	case Debug:
		return "debug"
	}
	return strconv.Itoa(int(lvl))
}
String converts a log level to its string representation.
package logging
import (
	"fmt"
	"strconv"
)
type Level uint8
const (
	Panic Level = iota
	Fatal
	Error
	Warn
	Info
	Debug
	maxLevel = int(255)
)