public enum LogLevel extends Enum<LogLevel>
Enum Constant and Description |
---|
Debug
Indicates information of use for figuring out a problem.
|
Error
Indicates a problem from which no recovery is possible.
|
Info
Indicates information of general interest.
|
Trace
Indicates extremely detailed information that is probably only useful to the maintainer of the code.
|
Warning
Indicates a problem from which we can recover.
|
Modifier and Type | Method and Description |
---|---|
static LogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogLevel Error
public static final LogLevel Warning
Recovery could be to give up whatever we attempted.
public static final LogLevel Info
public static final LogLevel Debug
public static final LogLevel Trace
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null