Package at.letto.tools.logging
Enum Class LogLevel
- All Implemented Interfaces:
Serializable
,Comparable<LogLevel>
,Constable
Die Log-Level gehen hierarchisch von OFF,CRITICAL,NORMAL,DEBUG bis ALL
Eine Meldung mit Level CRITICAL wird demnach von allen gleich oder höherwertigen Log-Level Einstellungen geloggt.
Eine Meldung mit Level ALL wird nur bei ALL geloggt.
Eine Meldung mit Level CRITICAL wird demnach von allen gleich oder höherwertigen Log-Level Einstellungen geloggt.
Eine Meldung mit Level ALL wird nur bei ALL geloggt.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
OFF
Nichts wird geloggt -
CRITICAL
Nur kritische Fehler werden geloggt -
NORMAL
Normales Logging für den Betrieb -
DEBUG
Debug-Logging für die Fehlersuche -
ALL
Alles wird geloggt
-
-
Field Details
-
STANDARD
LogLevel für einen neuen Logger wenn nichts angegeben wurde -
MESSAGE_STANDARD
LogLevel für eine Message wenn nichts angegeben wurde
-
-
Constructor Details
-
LogLevel
private LogLevel()
-
-
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
-
parse
Bestimmt aus einem String den Loglevel
-