public enum LDLogLevel extends java.lang.Enum<LDLogLevel>
This is the same basic level concept that exists in most logging frameworks. Levels
are ranked in ascending order from DEBUG
to ERROR
. Whatever
minimum level is enabled for the logger, any messages at a lower level will be
suppressed: for instance, if the minimum level is WARN
, then there will be
no output for DEBUG
or INFO
.
Enum Constant and Description |
---|
DEBUG
This level is for very detailed and verbose messages that are rarely useful except
in diagnosing an unusual problem.
|
ERROR
This level is for errors that should not happen during normal operation of the SDK
and should be investigated.
|
INFO
This level is for informational messages that are logged during normal operation of
the SDK.
|
NONE
This level is not actually used for output, but setting the minimum enabled level to
NONE disables all output. |
WARN
This level is for messages about unexpected conditions that may be worth noting,
but that do not necessarily prevent the SDK from working normally.
|
Modifier and Type | Method and Description |
---|---|
static LDLogLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LDLogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LDLogLevel DEBUG
public static final LDLogLevel INFO
public static final LDLogLevel WARN
public static final LDLogLevel ERROR
public static final LDLogLevel NONE
NONE
disables all output.public static LDLogLevel[] values()
for (LDLogLevel c : LDLogLevel.values()) System.out.println(c);
public static LDLogLevel 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 null