func GetLevelValue(levelName string) Level {
	return levelValues[levelName]
}
GetLevelValue lets users be able to get level value from level name.
package logging
type Level int32
const (
	CRITICAL Level = 50
	FATAL    Level = CRITICAL
	ERROR    Level = 40
	WARNING  Level = 30
	WARN     Level = WARNING
	INFO     Level = 20
	DEBUG    Level = 10
	NOTSET   Level = 0
)
var levelNames = map[Level]string{
	CRITICAL: "CRITICAL",
	ERROR:    "ERROR",
	WARNING:  "WARNING",
	INFO:     "INFO",
	DEBUG:    "DEBUG",
	NOTSET:   "NOTSET",
}
var levelValues = map[string]Level{
	"CRITICAL": CRITICAL,
	"ERROR":    ERROR,
	"WARN":     WARNING,
	"WARNING":  WARNING,
	"INFO":     INFO,
	"DEBUG":    DEBUG,
	"NOTSET":   NOTSET,
}
func (level *Level) String() string {
	return levelNames[*level]
}
func GetLevelName(levelValue Level) string {
	return levelNames[levelValue]
}