|
||||||||||
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> org.apache.torque.generator.configuration.controller.Loglevel
public enum Loglevel
The possible log levels. This implementation uses log4j internally, but the interface is agnostic of the logging framework.
Enum Constant Summary | |
---|---|
DEBUG
Loglevel debug. |
|
ERROR
Loglevel error. |
|
INFO
Loglevel info. |
|
TRACE
Loglevel trace. |
|
WARN
Loglevel warn. |
Method Summary | |
---|---|
void |
apply()
Applies the log level. |
static Loglevel |
getByKey(String key)
Returns the Loglevel for a given key. |
static Loglevel |
getCurrentLoglevel()
Returns the current loglevel. |
String |
getKey()
Returns the key of the Loglevel. |
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
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 nullpublic String getKey()
public void apply()
public static Loglevel getByKey(String key)
key
- the key to look for.
IllegalArgumentException
- if no Loglevel can be found
for the key.public static Loglevel getCurrentLoglevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |