func (t *LogLevel) UnmarshalBinary(data []byte) error {
	return t.UnmarshalText(data)
}
UnmarshalBinary satisfies BinaryUnmarshaler
Needed for msgpack
package userconfig
import "go.uber.org/zap/zapcore"
type LogLevel int
const (
	UnknownLogLevel LogLevel = iota
	DebugLogLevel
	InfoLogLevel
	WarningLogLevel
	ErrorLogLevel
)
var _logLevels = []string{
	"unknown",
	"debug",
	"info",
	"warning",
	"error",
}
func LogLevelFromString(s string) LogLevel {
	for i := 0; i < len(_logLevels); i++ {
		if s == _logLevels[i] {
			return LogLevel(i)
		}
	}
	return UnknownLogLevel
}
func LogLevelTypes() []string {
	return _logLevels[1:]
}
func (t LogLevel) String() string {
	return _logLevels[t]
}
func (t LogLevel) MarshalText() ([]byte, error) {
	return []byte(t.String()), nil
}
func (t *LogLevel) UnmarshalText(text []byte) error {
	enum := string(text)
	for i := 0; i < len(_logLevels); i++ {
		if enum == _logLevels[i] {
			*t = LogLevel(i)
			return nil
		}
	}
	*t = UnknownLogLevel
	return nil
}