public enum GelfMessageLevel extends Enum<GelfMessageLevel>
GelfMessage.| Enum Constant and Description |
|---|
ALERT |
CRITICAL |
DEBUG |
EMERGENCY |
ERROR |
INFO |
NOTICE |
WARNING |
| Modifier and Type | Method and Description |
|---|---|
static GelfMessageLevel |
fromNumericLevel(int level) |
int |
getNumericLevel()
Get the numerical level of a
GelfMessage. |
String |
toString() |
static GelfMessageLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GelfMessageLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GelfMessageLevel EMERGENCY
public static final GelfMessageLevel ALERT
public static final GelfMessageLevel CRITICAL
public static final GelfMessageLevel ERROR
public static final GelfMessageLevel WARNING
public static final GelfMessageLevel NOTICE
public static final GelfMessageLevel INFO
public static final GelfMessageLevel DEBUG
public static GelfMessageLevel[] values()
for (GelfMessageLevel c : GelfMessageLevel.values()) System.out.println(c);
public static GelfMessageLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getNumericLevel()
GelfMessage.public static GelfMessageLevel fromNumericLevel(int level)
public String toString()
toString in class Enum<GelfMessageLevel>Copyright © 2016 TORCH. All rights reserved.