| Enum Constant and Description |
|---|
DEBUG |
ERROR |
FATAL |
INFO |
TRACE |
UNKNOWN |
WARN |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEBUG_INT |
static int |
ERROR_INT |
static int |
FATAL_INT |
static int |
INFO_INT |
static int |
TRACE_INT |
static int |
UNKNOWN_INT |
static int |
WARN_INT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGreaterOrEqual(LogLevel r)
Returns
true if this Level has a higher or equal Level than the Level passed as
argument, false otherwise. |
int |
toInt() |
static LogLevel |
toLevel(int intLevel)
Convert the string passed as argument to a Level
|
static LogLevel |
toLevel(java.lang.String levelString)
Convert the string passed as argument to a Level.
|
static LogLevel |
toLevelOrUnknown(java.lang.String levelString)
Convert the string passed as argument to a Level.
|
java.lang.String |
toString() |
static LogLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogLevel ERROR
public static final LogLevel WARN
public static final LogLevel INFO
public static final LogLevel DEBUG
public static final LogLevel TRACE
public static final LogLevel FATAL
public static final LogLevel UNKNOWN
public static final int UNKNOWN_INT
public static final int FATAL_INT
public static final int ERROR_INT
public static final int WARN_INT
public static final int INFO_INT
public static final int DEBUG_INT
public static final int TRACE_INT
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel 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 toInt()
public boolean isGreaterOrEqual(LogLevel r)
true if this Level has a higher or equal Level than the Level passed as
argument, false otherwise.public static LogLevel toLevel(java.lang.String levelString)
public static LogLevel toLevelOrUnknown(java.lang.String levelString)
public static LogLevel toLevel(int intLevel)
public java.lang.String toString()
toString in class java.lang.Enum<LogLevel>