Enum Class Level

java.lang.Object
java.lang.Enum<Level>
org.elasticsearch.logging.Level
All Implemented Interfaces:
Serializable, Comparable<Level>, Constable

public enum Level extends Enum<Level>
Levels used for identifying the severity of an event and filtering the logging output.
  • 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 events should be logged.
    A general debugging event.
    An error in the application, possibly recoverable.
    A fatal error that will prevent the application from continuing.
    An event for informational purposes.
    No events will be logged.
    A fine-grained debug message, typically capturing the flow through the application.
    An event that might lead to an error.
  • 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.Object

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

    • OFF

      public static final Level OFF
      No events will be logged.
    • FATAL

      public static final Level FATAL
      A fatal error that will prevent the application from continuing.
    • ERROR

      public static final Level ERROR
      An error in the application, possibly recoverable.
    • WARN

      public static final Level WARN
      An event that might lead to an error.
    • INFO

      public static final Level INFO
      An event for informational purposes.
    • DEBUG

      public static final Level DEBUG
      A general debugging event.
    • TRACE

      public static final Level TRACE
      A fine-grained debug message, typically capturing the flow through the application.
    • ALL

      public static final Level ALL
      All events should be logged.
  • 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