Log4j 1.2.13 | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.log4j.Priority
public class Priority
extends Object
Level
class instead.
Field Summary | |
static int | |
static Priority |
|
static int | |
static Priority |
|
static int | |
static Priority |
|
static int | |
static Priority |
|
static int | |
static int | |
static Priority |
|
static int |
Constructor Summary | |
| |
|
Method Summary | |
boolean |
|
static Priority[] |
|
int |
|
boolean |
|
int |
|
static Priority |
|
static Priority |
|
static Priority |
|
static Priority |
|
String |
|
public static final int ALL_INT
public static final int DEBUG_INT
- Field Value:
- 10000
public static final int ERROR_INT
- Field Value:
- 40000
public static final int FATAL_INT
- Field Value:
- 50000
public static final int INFO_INT
- Field Value:
- 20000
public static final int OFF_INT
public static final int WARN_INT
- Field Value:
- 30000
protected Priority()
Default constructor for deserialization.
protected Priority(int level, String levelStr, int syslogEquivalent)
Instantiate a level object.
public boolean equals(Object o)
Two priorities are equal if their level fields are equal.
- Since:
- 1.2
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.
public final int getSyslogEquivalent()
Return the syslog equivalent of this priority as an integer.
public boolean isGreaterOrEqual(Priority r)
Returnstrue
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 ofisGreaterOrEqual
method.
public final int toInt()
Returns the integer representation of this level.
public static Priority toPriority(String sArg)
Deprecated. Please use the
Level.toLevel(String)
method instead.
public static Priority toPriority(String sArg, Priority defaultPriority)
Deprecated. Please use the
Level.toLevel(String,Level)
method instead.
public static Priority toPriority(int val)
Deprecated. Please use the
Level.toLevel(int)
method instead.
public static Priority toPriority(int val, Priority defaultPriority)
Deprecated. Please use the
Level.toLevel(int,Level)
method instead.
public final String toString()
Returns the string representation of this priority.