public enum LogLevel extends java.lang.Enum<LogLevel>
| Enum Constant and Description |
|---|
ALL
The ALL level has the lowest possible rank and is intended to turn on all logging.
|
DEBUG
The DEBUG level designates logging on a high level of detail, which is intended to provide
information for developers.
|
ERROR
The ERROR level designates logging on the lowest level of detail, which is intended to only
inform about the occurrence of critical errors.
|
INFO
The INFO level designates logging on a level of detail, which is intended to give an
rudimentary insight on the behavior of the software.
|
OFF
The OFF level has the highest possible rank and is intended to turn off all logging.
|
VERBOSE
The VERBOSE level designates logging on the highest level of detail, which is intended to
provide very fine-grained information for developers.
|
WARN
The WARN level designates logging on a low level of detail, which is intended to inform about
potentially harmful situations.
|
| Modifier and Type | Method and Description |
|---|---|
static LogLevel |
fromRank(int rank)
Creates and returns the log level, which belongs to a specific rank.
|
int |
getRank()
Returns the log level's rank.
|
static LogLevel |
valueOf(java.lang.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 ALL
public static final LogLevel VERBOSE
public static final LogLevel DEBUG
public static final LogLevel INFO
public static final LogLevel WARN
public static final LogLevel ERROR
public static final LogLevel OFF
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getRank()
Integer valuepublic static LogLevel fromRank(int rank)
rank - The rank of the log level, which should be returned, as an Integer value. If
the rank is invalid, an IllegalArgumentException will be thrownLogLevel. The log level may either be ALL, DEBUG,
INFO, WARN, ERROR or OFF