Package fr.diskmth.loggy
Enum Class LoggyLevel
- All Implemented Interfaces:
Serializable,Comparable<LoggyLevel>,Constable
LoggyLevel represents the possible logging levels for a log statement.
The levels are: FATAL, ERROR, WARN, INFO, and DEBUG.
- Since:
- Loggy 1.4
-
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 TypeMethodDescriptionstatic LoggyLevelfromJavaLevel(Level level) Returns the corresponding LoggyLevel enum value based on the input Java logging level.Returns the corresponding Java logging level based on this LoggyLevel enum value.static LoggyLevelReturns the enum constant of this class with the specified name.static LoggyLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FATAL
-
ERROR
-
WARN
-
INFO
-
DEBUG
-
-
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
-
fromJavaLevel
Returns the corresponding LoggyLevel enum value based on the input Java logging level.- Parameters:
level- the Java logging level to be converted to a LoggyLevel enum value.- Returns:
- the LoggyLevel enum value that corresponds to the input Java logging level.
-
toJavaLevel
Returns the corresponding Java logging level based on this LoggyLevel enum value.- Returns:
- the Java logging level that corresponds to this LoggyLevel enum value.
-