Enum Class Level

java.lang.Object
java.lang.Enum<Level>
com.teamdev.jxbrowser.logging.Level
All Implemented Interfaces:
Serializable, Comparable<Level>, Constable

public enum Level extends Enum<Level>
A set of standard logging levels that can be used to control logging output. The logging levels are ordered. Enabling logging at a given level also enables logging at all higher levels.

The levels in descending order are:

  • ERROR (highest value)
  • WARNING
  • INFO
  • DEBUG (lowest value)
In addition there is a level OFF that can be used to turn off logging, and a level ALL that can be used to enable logging of all messages.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    ALL indicates that all messages should be logged.
    DEBUG is a message level providing debug information.
    ERROR is a message level indicating a serious failure.
    INFO is a message level for informational messages.
    OFF is a special level that can be used to turn off logging.
    TRACE is a message level providing highly detailed tracing information.
    WARNING is a message level indicating a potential problem.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Level
    Returns the enum constant of this class with the specified name.
    static Level[]
    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, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • OFF

      public static final Level OFF
      OFF is a special level that can be used to turn off logging.
    • ALL

      public static final Level ALL
      ALL indicates that all messages should be logged.
    • ERROR

      public static final Level ERROR
      ERROR is a message level indicating a serious failure.
    • WARNING

      public static final Level WARNING
      WARNING is a message level indicating a potential problem.
    • INFO

      public static final Level INFO
      INFO is a message level for informational messages.
    • DEBUG

      public static final Level DEBUG
      DEBUG is a message level providing debug information.
    • TRACE

      public static final Level TRACE
      TRACE is a message level providing highly detailed tracing information.
  • Method Details

    • values

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