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 {@link Level#DEBUG} instead.
Deprecated: Use {@link Level#ERROR} instead.
Deprecated: Use {@link Level#FATAL} instead.
Deprecated: Use {@link Level#INFO} instead.
Deprecated: Use {@link Level#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 {@link Level#toLevel(String)} method instead.
Deprecated: Please use the {@link Level#toLevel(int)} method instead.
Deprecated: Please use the {@link Level#toLevel(int, Level)} method instead.
Deprecated: Please use the {@link Level#toLevel(String, Level)} method instead.