Enum Class LogLevel

java.lang.Object
java.lang.Enum<LogLevel>
de.hybris.platform.integrationservices.util.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>, Constable

public enum LogLevel extends Enum<LogLevel>
Possible levels for writing into a log.
  • Enum Constant Details

    • NONE

      public static final LogLevel NONE
    • INFO

      public static final LogLevel INFO
    • ERROR

      public static final LogLevel ERROR
    • WARN

      public static final LogLevel WARN
    • DEBUG

      public static final LogLevel DEBUG
    • TRACE

      public static final LogLevel TRACE
  • Method Details

    • values

      public static LogLevel[] 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 LogLevel 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
    • isEnabled

      public boolean isEnabled(LogLevel l)
      Determines whether this log level enables the specified level. For example, if this log level is WARN, then for INFO value of the l parameter, the return is true; but for DEBUG value - it's false.
      Parameters:
      l - a log level to check whether it's enabled.
      Returns:
      true, if the specified log level is enabled by this log level; false otherwise.
      For example, if there is a log level var level = LogLevel.WARN, then level.isEnabled(LogLevel.INFO) or level.isEnabled(LogLevel.WARN) will return true; but level.isEnabled(LogLevel.DEBUG) will return false