Package org.apache.log4j
Class Priority
java.lang.Object
org.apache.log4j.Priority
- Direct Known Subclasses:
Level
Deprecated.
Apache Log4j 1 has reached end of life in 2015 and is no longer supported.
Refrain from using this class directly, use
the
Level
class instead.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static final Priority
Deprecated.UseLevel.DEBUG
instead.static final int
Deprecated.static final Priority
Deprecated.UseLevel.ERROR
instead.static final int
Deprecated.static final Priority
Deprecated.UseLevel.FATAL
instead.static final int
Deprecated.static final Priority
Deprecated.UseLevel.INFO
instead.static final int
Deprecated.static final int
Deprecated.static final Priority
Deprecated.UseLevel.WARN
instead.static final int
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Two priorities are equal if their level fields are equal.static Priority[]
Deprecated.This method will be removed with no replacement.final int
Deprecated.Return the syslog equivalent of this priority as an integer.boolean
Deprecated.Returnstrue
if this level has a higher or equal level than the level passed as argument,false
otherwise.final int
toInt()
Deprecated.Returns the integer representation of this level.static Priority
toPriority
(int val) Deprecated.Please use theLevel.toLevel(int)
method instead.static Priority
toPriority
(int val, Priority defaultPriority) Deprecated.Please use theLevel.toLevel(int, Level)
method instead.static Priority
toPriority
(String sArg) Deprecated.Please use theLevel.toLevel(String)
method instead.static Priority
toPriority
(String sArg, Priority defaultPriority) Deprecated.Please use theLevel.toLevel(String, Level)
method instead.final String
toString()
Deprecated.Returns the string representation of this priority.
-
Field Details
-
OFF_INT
public static final int OFF_INTDeprecated.- See Also:
-
FATAL_INT
public static final int FATAL_INTDeprecated.- See Also:
-
ERROR_INT
public static final int ERROR_INTDeprecated.- See Also:
-
WARN_INT
public static final int WARN_INTDeprecated.- See Also:
-
INFO_INT
public static final int INFO_INTDeprecated.- See Also:
-
DEBUG_INT
public static final int DEBUG_INTDeprecated.- See Also:
-
ALL_INT
public static final int ALL_INTDeprecated.- See Also:
-
FATAL
Deprecated.UseLevel.FATAL
instead. -
ERROR
Deprecated.UseLevel.ERROR
instead. -
WARN
Deprecated.UseLevel.WARN
instead. -
INFO
Deprecated.UseLevel.INFO
instead. -
DEBUG
Deprecated.UseLevel.DEBUG
instead.
-
-
Method Details
-
equals
Deprecated.Two priorities are equal if their level fields are equal. -
getSyslogEquivalent
public final int getSyslogEquivalent()Deprecated.Return the syslog equivalent of this priority as an integer. -
isGreaterOrEqual
Deprecated.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 of
isGreaterOrEqual
method. -
getAllPossiblePriorities
Deprecated.This method will be removed with no replacement.Return all possible priorities as an array of Level objects in descending order. -
toString
Deprecated.Returns the string representation of this priority. -
toInt
public final int toInt()Deprecated.Returns the integer representation of this level. -
toPriority
Deprecated.Please use theLevel.toLevel(String)
method instead. -
toPriority
Deprecated.Please use theLevel.toLevel(int)
method instead. -
toPriority
Deprecated.Please use theLevel.toLevel(int, Level)
method instead. -
toPriority
Deprecated.Please use theLevel.toLevel(String, Level)
method instead.
-