
Parse a level name string into a Level.
The argument string may consist of either a level name
or an integer value.
For example:
Returns:
The parsed value. Passing an integer that corresponds to a known name
(eg 700) will return the associated name (eg
CONFIG).
Passing an integer that does not (eg 1) will return a new level name
initialized to that value.
Parameters:
-
name - string to be parsed
Throws:
-
NullPointerException - if the name is null
-
IllegalArgumentException - if the value is not valid.
Valid values are integers between
Integer.MIN_VALUE
and
Integer.MAX_VALUE, and all known level names.
Known names are the levels defined by this class (i.e.
FINE,
FINER,
FINEST), or created by this class with
appropriate package access, or new levels defined or created
by subclasses.