// GetLevelString return a valid Level Type matching the given string parameter. If the given parameter don't represent a valid level, the InfoLevel will be return.
/*
	level the string representation of a Level type
*/
GetLevelString return a valid Level Type matching the given string parameter. If the given parameter don't represent a valid level, the InfoLevel will be return.

level the string representation of a Level type
// GetLevelString return a valid Level Type matching the given string parameter . If the given parameter don ' t represent a valid level the InfoLevel will be return . / * level the string representation of a Level type * /
func GetLevelString(l string) Level {
	switch strings.ToLower(l) {
	case strings.ToLower(PanicLevel.String()):
		return PanicLevel
	case strings.ToLower(FatalLevel.String()):
		return FatalLevel
	case strings.ToLower(ErrorLevel.String()):
		return ErrorLevel
	case strings.ToLower(WarnLevel.String()):
		return WarnLevel
	case strings.ToLower(InfoLevel.String()):
		return InfoLevel
	case strings.ToLower(DebugLevel.String()):
		return DebugLevel
	}
	return InfoLevel
}
func GetLevelString ( l string ) Level { switch strings . ToLower ( l ) { case strings . ToLower ( PanicLevel . String ( ) ) : return PanicLevel case strings . ToLower ( FatalLevel . String ( ) ) : return FatalLevel case strings . ToLower ( ErrorLevel . String ( ) ) : return ErrorLevel case strings . ToLower ( WarnLevel . String ( ) ) : return WarnLevel case strings . ToLower ( InfoLevel . String ( ) ) : return InfoLevel case strings . ToLower ( DebugLevel . String ( ) ) : return DebugLevel } return InfoLevel }
GetLevelString return a valid Level Type matching the given string parameter.
GetLevelString return a valid Level Type matching the given string parameter .