Package org.apache.log4j
Class Priority
java.lang.Object
org.apache.log4j.Priority
- Direct Known Subclasses:
Level
Refrain from using this class directly, use the
Level class instead.- Author:
- Ceki Gülcü
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final PriorityDeprecated.static final intstatic final PriorityDeprecated.UseLevel.ERRORinstead.static final intstatic final PriorityDeprecated.UseLevel.FATALinstead.static final intstatic final PriorityDeprecated.UseLevel.INFOinstead.static final intstatic final intstatic final PriorityDeprecated.UseLevel.WARNinstead.static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo priorities are equal if their level fields are equal.static Priority[]Deprecated.This method will be removed with no replacement.final intReturn the syslog equivalent of this priority as an integer.booleanReturnstrueif this level has a higher or equal level than the level passed as argument,falseotherwise.final inttoInt()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()Returns the string representation of this priority.
-
Field Details
-
OFF_INT
public static final int OFF_INT- See Also:
-
FATAL_INT
public static final int FATAL_INT- See Also:
-
ERROR_INT
public static final int ERROR_INT- See Also:
-
WARN_INT
public static final int WARN_INT- See Also:
-
INFO_INT
public static final int INFO_INT- See Also:
-
DEBUG_INT
public static final int DEBUG_INT- See Also:
-
ALL_INT
public static final int ALL_INT- See Also:
-
FATAL
Deprecated.UseLevel.FATALinstead. -
ERROR
Deprecated.UseLevel.ERRORinstead. -
WARN
Deprecated.UseLevel.WARNinstead. -
INFO
Deprecated.UseLevel.INFOinstead. -
DEBUG
Deprecated.UseLevel.DEBUGinstead.
-
-
Constructor Details
-
Priority
protected Priority()Default constructor for deserialization. -
Priority
Instantiate a level object.
-
-
Method Details
-
equals
Two priorities are equal if their level fields are equal. -
getSyslogEquivalent
public final int getSyslogEquivalent()Return the syslog equivalent of this priority as an integer. -
isGreaterOrEqual
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
Returns the string representation of this priority. -
toInt
public final int toInt()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.
-
Level.DEBUGinstead.