The following LogRecord properties determine severity ordering:
Throwable defined as
"normal occurrence".
java.lang.Throwable class and is not a
java.lang.RuntimeException or a java.lang.Error.
java.lang.RuntimeException
objects.
java.lang.Error objects.
| Modifier and Type | Field and Description |
|---|---|
| private static final Comparator | INSTANCE
A single instance that is shared among the logging package. |
| private static final long | serialVersionUID
The generated serial version UID. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | |
| public final int | Returns: a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.the first throwable chain or null. tc1, Throwable the second throwable chain or null. tc2)
|
| public int | Returns: a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.the first log record. o1, final LogRecord the second log record. o2)Implements java. |
| private int | Returns: a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.the first level. a, final Level the second level. b)Implements java. |
| private int | Returns: a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.the first long. x, final long the second long. y)Implements java. |
| public int | Returns: a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.the first throwable or null. t1, final Throwable the second throwable or null. t2)Compares two throwable objects or null. |
| public boolean | Returns: true if this object equal to the argument; false otherwise.the reference object with which to compare. o)Overrides java. Implements java. |
| pack-priv static SeverityComparator | Returns: a shared instance of a SeverityComparator.A shared instance of a SeverityComparator. |
| public int | Returns: Returns a hash code value for the object.Overrides java. |
| public boolean | |
| private static String |
| INSTANCE | back to summary |
|---|---|
| private static final Comparator<LogRecord> INSTANCE A single instance that is shared among the logging package. The field is declared as java.util.Comparator so WebappClassLoader.clearReferencesStaticFinal() method will ignore this field. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID The generated serial version UID. | |
| SeverityComparator | back to summary |
|---|---|
| public SeverityComparator() | |
| apply | back to summary |
|---|---|
| public Throwable apply(final Throwable chain) Identifies a single throwable that best describes the given throwable and
the entire cause chain. This method can
be overridden to change the behavior of
| |
| applyThenCompare | back to summary |
|---|---|
| public final int applyThenCompare(Throwable tc1, Throwable tc2)
| |
| compare | back to summary |
|---|---|
| public int compare(final LogRecord o1, final LogRecord o2) Implements java. Compares two log records based on severity.
| |
| compare | back to summary |
|---|---|
| private int compare(final Level a, final Level b) Implements java. Compare two level objects. | |
| compare | back to summary |
|---|---|
| private int compare(final long x, final long y) Implements java. Compare two longs. Can be removed when JDK 1.7 is required.
| |
| compareThrowable | back to summary |
|---|---|
| public int compareThrowable(final Throwable t1, final Throwable t2) Compares two throwable objects or null. This method does not
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Implements java. Determines if the given object is also a comparator and it imposes the same ordering as this comparator. | |
| getInstance | back to summary |
|---|---|
| pack-priv static SeverityComparator getInstance() A shared instance of a SeverityComparator. This is package private so the public API is not polluted with more methods.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for the object.
| |
| isNormal | back to summary |
|---|---|
| public boolean isNormal(final Throwable t) Determines if the given throwable instance is "normal occurrence". This
is any checked or unchecked exception with 'Interrupt' in the class name
or ancestral class name. Any
| |
| toString | back to summary |
|---|---|
| private static String toString(final Object o1, final Object o2) Outline the message create string. | |