public enum ClientLogLevel extends java.lang.Enum<ClientLogLevel>
Enum Constant and Description |
---|
ALL
All log messages are logged
|
DEBUG |
ERROR |
FATAL |
INFO |
NONE
All log messages are silenced
|
WARNING |
Modifier and Type | Method and Description |
---|---|
int |
getGrade() |
boolean |
isEnabled(ClientLogLevel activeLevel)
Returns whether this log level is enabled given the specified active log level.
|
static ClientLogLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientLogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientLogLevel NONE
public static final ClientLogLevel FATAL
public static final ClientLogLevel ERROR
public static final ClientLogLevel WARNING
public static final ClientLogLevel INFO
public static final ClientLogLevel DEBUG
public static final ClientLogLevel ALL
public static ClientLogLevel[] values()
for (ClientLogLevel c : ClientLogLevel.values()) System.out.println(c);
public static ClientLogLevel 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 int getGrade()
public boolean isEnabled(ClientLogLevel activeLevel)
activeLevel
- the currently active log level (usually obtained from a logger), must be non-null