public enum Level extends java.lang.Enum<Level> implements java.lang.Comparable<Level>, JsonSerializable
| Enum Constant and Description |
|---|
CRITICAL
A critical error (must be fixed ASAP).
|
DEBUG
Information to help in debugging your software.
|
ERROR
An error, possibly customer facing, that should be fixed.
|
INFO
Information about your software's operation.
|
WARNING
An issue that may or may not be problematic.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asJson()
How to serialize this as Json.
|
int |
level()
Get the numeric value.
|
static Level |
lookupByName(java.lang.String name) |
static Level |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Level[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Level CRITICAL
public static final Level ERROR
public static final Level WARNING
public static final Level INFO
public static final Level DEBUG
public static Level[] values()
for (Level c : Level.values()) System.out.println(c);
public static 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 static Level lookupByName(java.lang.String name)
public int level()
public java.lang.String asJson()
asJson in interface JsonSerializable