|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Severity> logahawk.Severity
public enum Severity
Defines all Severity levels for log messages. The severity levels are based loosely on the UNIX severity levels.
Enum Constant Summary | |
---|---|
ALERT
An important but non-error message. |
|
DEBUG
For developing and debugging purposes. |
|
ERROR
An error that is not fatal to the process but does need to be reported. |
|
FATAL
A fatal error that should halt the process (and possibly the program). |
|
INFO
The default severity, used for most messages. |
|
PANIC
The worst kind of error. |
|
WARN
A warning that a minor problem or recoverable problem has has occurred. |
Method Summary | |
---|---|
String |
getFixedLengthString()
Returns the enumerations value padded to the maximum size of any enumeration value. |
String |
getNormalCaseValue()
Returns toString() with normal casing -- first letter uppercase, other letters lowercase. |
String |
toString()
|
static Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Severity[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Severity DEBUG
public static final Severity INFO
public static final Severity ALERT
public static final Severity WARN
public static final Severity ERROR
public static final Severity FATAL
public static final Severity PANIC
Method Detail |
---|
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity 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 nullpublic String toString()
toString
in class Enum<Severity>
public String getFixedLengthString()
public String getNormalCaseValue()
toString()
with normal casing -- first letter uppercase, other letters lowercase.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |