Package dev.deepcore.logging
Enum Class DeepCoreLogLevel
- All Implemented Interfaces:
Serializable,Comparable<DeepCoreLogLevel>,Constable
Severity levels used by the DeepCore logger.
-
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 DeepCoreLogLevelfromString(String raw, DeepCoreLogLevel fallback) Parses a level string and returns fallback for null/blank/invalid values.booleanincludes(DeepCoreLogLevel other) Returns true when this level includes messages at the other level.static DeepCoreLogLevelReturns the enum constant of this class with the specified name.static DeepCoreLogLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEBUG
Diagnostic-level details for troubleshooting. -
INFO
Standard informational operational messages. -
WARN
Recoverable warning conditions requiring attention. -
ERROR
Error conditions indicating failures.
-
-
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
-
includes
Returns true when this level includes messages at the other level.- Parameters:
other- level being evaluated against this threshold- Returns:
- true when the other level is at or above this level's weight
-
fromString
Parses a level string and returns fallback for null/blank/invalid values.- Parameters:
raw- raw level name value to parsefallback- level to return when parsing fails- Returns:
- parsed log level, or fallback when input is missing or invalid
-