Enum Class LogLevel
- All Implemented Interfaces:
Serializable,Comparable<LogLevel>,Constable
How much Stemma writes to its log file: Info normally, Debug or Trace when something has to be found out.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Makes this the level of the application's loggers, at once, without a restart.static LogLevelcurrent()The level in effect now.key()Value stored in the settings file.label()The name shown in the settings.static LogLevelThe level of a key from the settings file, case-insensitive; anything unknown isINFO.static LogLevelReturns the enum constant of this class with the specified name.static LogLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INFO
-
DEBUG
-
TRACE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
label
The name shown in the settings. -
key
Value stored in the settings file. -
of
The level of a key from the settings file, case-insensitive; anything unknown isINFO. -
apply
public void apply()Makes this the level of the application's loggers, at once, without a restart. Does nothing if Logback is not the logger. -
current
The level in effect now.
-