限定符和类型 | 字段和说明 |
---|---|
static int |
ALL_INT |
static Priority |
DEBUG
已过时。
Use
Level.DEBUG instead. |
static int |
DEBUG_INT |
static Priority |
ERROR
已过时。
Use
Level.ERROR instead. |
static int |
ERROR_INT |
static Priority |
FATAL
已过时。
Use
Level.FATAL instead. |
static int |
FATAL_INT |
static Priority |
INFO
已过时。
Use
Level.INFO instead. |
static int |
INFO_INT |
static int |
OFF_INT |
static Priority |
WARN
已过时。
Use
Level.WARN instead. |
static int |
WARN_INT |
限定符 | 构造器和说明 |
---|---|
protected |
Priority()
Default constructor for deserialization.
|
protected |
Priority(int level,
java.lang.String levelStr,
int syslogEquivalent)
Instantiate a level object.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object o)
Two priorities are equal if their level fields are equal.
|
static Priority[] |
getAllPossiblePriorities()
已过时。
This method will be removed with no replacement.
|
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(int val)
已过时。
Please use the
Level.toLevel(int) method instead. |
static Priority |
toPriority(int val,
Priority defaultPriority)
已过时。
Please use the
Level.toLevel(int, Level) method instead. |
static Priority |
toPriority(java.lang.String sArg)
已过时。
Please use the
Level.toLevel(String) method instead. |
static Priority |
toPriority(java.lang.String sArg,
Priority defaultPriority)
已过时。
Please use the
Level.toLevel(String, Level) method instead. |
java.lang.String |
toString()
Returns the string representation of this priority.
|
public static final int OFF_INT
public static final int FATAL_INT
public static final int ERROR_INT
public static final int WARN_INT
public static final int INFO_INT
public static final int DEBUG_INT
public static final int ALL_INT
public static final Priority FATAL
Level.FATAL
instead.public static final Priority ERROR
Level.ERROR
instead.public static final Priority WARN
Level.WARN
instead.public static final Priority INFO
Level.INFO
instead.public static final Priority DEBUG
Level.DEBUG
instead.protected Priority()
protected Priority(int level, java.lang.String levelStr, int syslogEquivalent)
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public final int getSyslogEquivalent()
public boolean isGreaterOrEqual(Priority r)
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.
public static Priority[] getAllPossiblePriorities()
public final java.lang.String toString()
toString
在类中 java.lang.Object
public final int toInt()
public static Priority toPriority(java.lang.String sArg)
Level.toLevel(String)
method instead.public static Priority toPriority(int val)
Level.toLevel(int)
method instead.public static Priority toPriority(int val, Priority defaultPriority)
Level.toLevel(int, Level)
method instead.public static Priority toPriority(java.lang.String sArg, Priority defaultPriority)
Level.toLevel(String, Level)
method instead.