public boolean equals(Object o) {
        if (o instanceof Priority) {
            Priority r = (Priority) o;
            return (this.level == r.level);
        } else {
            return false;
        }
    }
Two priorities are equal if their level fields are equal.
       @since 1.2
log4j-over-slf4j/src/main/java/org/apache/log4j/Priority.java