Enum Class DeepCoreLogLevel

java.lang.Object
java.lang.Enum<DeepCoreLogLevel>
dev.deepcore.logging.DeepCoreLogLevel
All Implemented Interfaces:
Serializable, Comparable<DeepCoreLogLevel>, Constable

public enum DeepCoreLogLevel extends Enum<DeepCoreLogLevel>
Severity levels used by the DeepCore logger.
  • Enum Constant Details

    • DEBUG

      public static final DeepCoreLogLevel DEBUG
      Diagnostic-level details for troubleshooting.
    • INFO

      public static final DeepCoreLogLevel INFO
      Standard informational operational messages.
    • WARN

      public static final DeepCoreLogLevel WARN
      Recoverable warning conditions requiring attention.
    • ERROR

      public static final DeepCoreLogLevel ERROR
      Error conditions indicating failures.
  • Method Details

    • values

      public static DeepCoreLogLevel[] 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

      public static DeepCoreLogLevel valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • includes

      public boolean includes(DeepCoreLogLevel other)
      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

      public static DeepCoreLogLevel fromString(String raw, DeepCoreLogLevel fallback)
      Parses a level string and returns fallback for null/blank/invalid values.
      Parameters:
      raw - raw level name value to parse
      fallback - level to return when parsing fails
      Returns:
      parsed log level, or fallback when input is missing or invalid