public enum Loglevel extends Enum<Loglevel>
| Enum Constant and Description | 
|---|
| DEBUGLoglevel debug. | 
| ERRORLoglevel error. | 
| INFOLoglevel info. | 
| TRACELoglevel trace. | 
| WARNLoglevel warn. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 LoggingAdapter | getLoggingAdapter()Returns the currently used logging adapter. | 
| static void | setLoggingAdapter(LoggingAdapter loggingAdapter)Sets the logging adapter. | 
| 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. | 
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 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 nameNullPointerException - 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()
public static LoggingAdapter getLoggingAdapter()
public static void setLoggingAdapter(LoggingAdapter loggingAdapter)
loggingAdapter - the logging adapterNullPointerException - if loggingAdapter is null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.