public static Level valueOf ( final String name ) { Objects . requireNonNull ( name , "No level name given." ) ; final String levelName = toUpperCase ( name ) ; final Level level = LEVELS . get ( levelName ) ; if ( level != null ) { return level ; } throw new IllegalArgumentException ( "Unknown level constant [" + levelName + "]." ) ; }
Return the Level associated with the name .