Enum Severity

    • Enum Constant Detail

      • DEBUG

        public static final Severity DEBUG
        The severity used for debug messages.
      • INFORMATION

        public static final Severity INFORMATION
        The severity used for informational messages.
      • NOTICE

        public static final Severity NOTICE
        The severity used for important informational messages.
      • WARNING

        public static final Severity WARNING
        The severity used for warning messages.
      • ERROR

        public static final Severity ERROR
        The severity used for error messages.
      • NONE

        public static final Severity NONE
        The severity used for logging no messages.
    • Field Detail

      • VALUES

        public static final List<Severity> VALUES
        All the enum values (defined to avoid calling Severity.values() which allocate an array each time.
    • Method Detail

      • values

        public static Severity[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Severity c : Severity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Severity valueOf​(String name)
        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
      • getPropertyKeyFormSet

        public static Set<String> getPropertyKeyFormSet()
        Returns a set of string representing all Severitys' abbreviated representations.
        Returns:
        set of messageDescriptorForm strings
      • parseString

        public static Severity parseString​(String s)
        Returns the Severity associated with the input string s which can either be a severity's name or messageDescriptorForm.
        Parameters:
        s - Severity name or messageDescriptorForm
        Returns:
        Severity associated with s