|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<LogLevel>
org.jagatoo.logging.LogLevel
public enum LogLevel
Use these constants as parameter for the Log methods.
Enum Constant Summary | |
---|---|
DEBUG
debugging information, usually turned off |
|
ERROR
a serious error has been detected |
|
EXCEPTION
an unexcepted exception occured |
|
EXHAUSTIVE
everything goes here, this is expensive |
|
PROFILE
debugging information, usually turned off |
|
REGULAR
regular logging output |
Field Summary | |
---|---|
byte |
level
|
static LogLevel |
MINIMUM
|
Method Summary | |
---|---|
int |
compareLevel(LogLevel logLevel)
|
boolean |
isError()
|
static boolean |
isError(int logLevel)
|
boolean |
isSmallerOrEqual(LogLevel logLevel)
|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final LogLevel ERROR
public static final LogLevel EXCEPTION
public static final LogLevel REGULAR
public static final LogLevel EXHAUSTIVE
public static final LogLevel DEBUG
public static final LogLevel PROFILE
Field Detail |
---|
public final byte level
public static final LogLevel MINIMUM
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic final boolean isError()
public static final boolean isError(int logLevel)
public final int compareLevel(LogLevel logLevel)
public final boolean isSmallerOrEqual(LogLevel logLevel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |