public static enum LoggerSimple.Level extends java.lang.Enum<LoggerSimple.Level>
Level
.
When calling the wrapped logger, the level will be mapped to a value supported by the wrapped logger, depending on the wrapper implementation.
Enum Constant and Description |
---|
ALL
Setting for the level of the logger specifying all logging messages should be shown.
|
ERROR
Error messages.
|
INFO
Information messages.
|
OFF
Setting for the level of the logger specifying no logging messages should be shown.
|
TRACE
Finer, tracing messages.
|
WARN
Warning messages.
|
Modifier and Type | Field and Description |
---|---|
(package private) int |
priority
The priority of the level.
|
Modifier and Type | Method and Description |
---|---|
boolean |
displayWith(LoggerSimple.Level logLevel)
Returns
true if a message with this level should be displayed if the level of the log is
logLevel . |
static LoggerSimple.Level |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LoggerSimple.Level[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggerSimple.Level OFF
public static final LoggerSimple.Level ERROR
public static final LoggerSimple.Level WARN
public static final LoggerSimple.Level INFO
public static final LoggerSimple.Level TRACE
public static final LoggerSimple.Level ALL
public static LoggerSimple.Level[] values()
for (LoggerSimple.Level c : LoggerSimple.Level.values()) System.out.println(c);
public static LoggerSimple.Level 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 boolean displayWith(LoggerSimple.Level logLevel)
true
if a message with this level should be displayed if the level of the log is
logLevel
.logLevel
- - the level of the log.true
if the message should be displayed, false
otherwise.