|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<LogLevel> net.sourceforge.acelogger.level.LogLevel
public enum LogLevel
A logging level enumeration describing each supported level and it's intended use.
Enum Constant Summary | |
---|---|
DEBUG
A log level used to trace an application decisions and results, information in this .level should be enough to determine the path used to obtain the results. |
|
ERROR
A log level used to indicate a recoverable error, like a connection loss or an inexistent file. |
|
FATAL
A log level used to indicate an unrecoverable error, most of the times the program will not continue running after a fatal exception, and if it continues running we can't guarantee the results, like an out of memory error. |
|
INFO
A log level used to inform an expected (but undesired) condition, like a failed security check for an user. |
|
TRACE
A log level used to "echo" the application state, most of the times this level should be disabled in production as it generates large amount of data, and sometimes this data should not be stored for security reasons. |
|
WARN
A log level used to indicate an occurrence of an uncommon (but somehow expected) condition, like not having a value were expected. |
Method Summary | |
---|---|
static LogLevel |
valueOf(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 TRACE
public static final LogLevel DEBUG
public static final LogLevel INFO
public static final LogLevel WARN
public static final LogLevel ERROR
public static final LogLevel FATAL
Method Detail |
---|
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |