All Implemented Interfaces:
Serializable, Comparable<System.Logger.Level>, Constable
Enclosing interface:
System.Logger

public static enum System.Logger.Level
extends Enum<System.Logger.Level>
Since:
9
See Also:
System.LoggerFinder, System.Logger
  • Enum Constant Details

    • ALL

      A marker to indicate that all levels are enabled. This level severity is Integer.MIN_VALUE.

    • TRACE

      TRACE level: usually used to log diagnostic information. This level severity is 400.

    • DEBUG

      DEBUG level: usually used to log debug information traces. This level severity is 500.

    • INFO

      INFO level: usually used to log information messages. This level severity is 800.

    • WARNING

      WARNING level: usually used to log warning messages. This level severity is 900.

    • ERROR

      ERROR level: usually used to log error messages. This level severity is 1000.

    • OFF

      A marker to indicate that all levels are disabled. This level severity is Integer.MAX_VALUE.

  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.

      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public final String getName()

      Returns the name of this level.

      Returns:
      this level Enum.name().
    • getSeverity

      public final int getSeverity()

      Returns the severity of this level. A higher severity means a more severe condition.

      Returns:
      this level severity.