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 intDeprecated.static final PriorityDeprecated.UseLevel.DEBUGinstead.static final intDeprecated.static final PriorityDeprecated.UseLevel.ERRORinstead.static final intDeprecated.static final PriorityDeprecated.UseLevel.FATALinstead.static final intDeprecated.static final PriorityDeprecated.UseLevel.INFOinstead.static final intDeprecated.static final intDeprecated.static final PriorityDeprecated.UseLevel.WARNinstead.static final intDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Two priorities are equal if their level fields are equal.static Priority[]Deprecated.This method will be removed with no replacement.final intDeprecated.Return the syslog equivalent of this priority as an integer.booleanDeprecated.Returnstrueif this level has a higher or equal level than the level passed as argument,falseotherwise.final inttoInt()Deprecated.Returns the integer representation of this level.static PrioritytoPriority(int val) Deprecated.Please use theLevel.toLevel(int)method instead.static PrioritytoPriority(int val, Priority defaultPriority) Deprecated.Please use theLevel.toLevel(int, Level)method instead.static PrioritytoPriority(String sArg) Deprecated.Please use theLevel.toLevel(String)method instead.static PrioritytoPriority(String sArg, Priority defaultPriority) Deprecated.Please use theLevel.toLevel(String, Level)method instead.final StringtoString()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.FATALinstead. -
ERROR
Deprecated.UseLevel.ERRORinstead. -
WARN
Deprecated.UseLevel.WARNinstead. -
INFO
Deprecated.UseLevel.INFOinstead. -
DEBUG
Deprecated.UseLevel.DEBUGinstead.
-
-
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.Returnstrueif this level has a higher or equal level than the level passed as argument,falseotherwise.You should think twice before overriding the default implementation of
isGreaterOrEqualmethod. -
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.
-