Enum Class LogLevel
- All Implemented Interfaces:
Serializable,Comparable<LogLevel>,Constable
Enum specifying the log levels.
- Version:
- 10.1.1
- Author:
- jmback
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll levelsA change will be or has been applied.A info for finding out, what happened in detail during the application.An error has occurred, the application may continue.An error has occurred, the application should terminate.A info for finding out, what happened in detail during the application.A info to trace maximally what happened.A warning should be displayed to the user immediately to be informed or to take a decision. -
Method Summary
Modifier and TypeMethodDescriptionstatic LogLevelConvert string into enumeration.getIcon()booleanisLevelLogged(SessionInterface session) toString()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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
Fatal
An error has occurred, the application should terminate. The user has to be informed about this termination. -
Error
An error has occurred, the application may continue. The user has to be informed about this error. -
Warning
A warning should be displayed to the user immediately to be informed or to take a decision. -
Change
A change will be or has been applied. Messages of this level address primarily the user. -
Info
A info for finding out, what happened in detail during the application. This info is not primarily for the user but should be understandable. -
Debug
A info for finding out, what happened in detail during the application. This info is never intended for the user. -
Trace
A info to trace maximally what happened. This info is never intended for the user. -
All
All levels
-
-
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
-
convert
Convert string into enumeration. Like valueOf, but does not throw exceptions.- Parameters:
iLevel- level as string- Returns:
- level as enumeration
-
toString
-
getIcon
-
getDetail
-
isLevelLogged
-