org.apache.log4j
public class Priority extends Object
| Field Summary | |
|---|---|
| static int | ALL_INT |
| static Priority | DEBUG |
| static int | DEBUG_INT |
| static Priority | ERROR |
| static int | ERROR_INT |
| static Priority | FATAL |
| static int | FATAL_INT |
| static Priority | INFO |
| static int | INFO_INT |
| static int | OFF_INT |
| static Priority | WARN |
| static int | WARN_INT |
| Constructor Summary | |
|---|---|
| protected | Priority()
Default constructor for deserialization. |
| protected | Priority(int level, String levelStr, int syslogEquivalent)
Instantiate a level object. |
| Method Summary | |
|---|---|
| boolean | equals(Object o)
Two priorities are equal if their level fields are equal. |
| static Priority[] | getAllPossiblePriorities()
Return all possible priorities as an array of Level objects in
descending order. |
| int | getSyslogEquivalent()
Return the syslog equivalent of this priority as an integer. |
| boolean | isGreaterOrEqual(Priority r)
Returns true if this level has a higher or equal
level than the level passed as argument, false
otherwise.
|
| int | toInt()
Returns the integer representation of this level. |
| static Priority | toPriority(String sArg) |
| static Priority | toPriority(int val) |
| static Priority | toPriority(int val, Priority defaultPriority) |
| static Priority | toPriority(String sArg, Priority defaultPriority) |
| String | toString()
Returns the string representation of this priority. |
Deprecated: Use DEBUG instead.
Deprecated: Use ERROR instead.
Deprecated: Use FATAL instead.
Deprecated: Use INFO instead.
Deprecated: Use WARN instead.
Since: 1.2
Deprecated: This method will be removed with no replacement.
Return all possible priorities as an array of Level objects in descending order.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.
Deprecated: Please use the toLevel method instead.
Deprecated: Please use the Level method instead.
Deprecated: Please use the Level method instead.
Deprecated: Please use the Level method instead.