Class Priority

  • Direct Known Subclasses:
    Level

    @Deprecated(since="2022-01-27")
    public class Priority
    extends java.lang.Object
    Deprecated.
    Apache Log4j 1 has reached end of life in 2015 and is no longer supported.
    Refrain from using this class directly, use the Level class instead.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Two priorities are equal if their level fields are equal.
        Overrides:
        equals in class java.lang.Object
        Since:
        1.2
      • getSyslogEquivalent

        public final int getSyslogEquivalent()
        Deprecated.
        Return the syslog equivalent of this priority as an integer.
      • isGreaterOrEqual

        public boolean isGreaterOrEqual​(Priority r)
        Deprecated.
        Returns true if this level has a higher or equal level than the level passed as argument, false otherwise.

        You should think twice before overriding the default implementation of isGreaterOrEqual method.

      • getAllPossiblePriorities

        public static Priority[] getAllPossiblePriorities()
        Deprecated.
        This method will be removed with no replacement.
        Return all possible priorities as an array of Level objects in descending order.
      • toString

        public final java.lang.String toString()
        Deprecated.
        Returns the string representation of this priority.
        Overrides:
        toString in class java.lang.Object
      • toInt

        public final int toInt()
        Deprecated.
        Returns the integer representation of this level.