Package org.apache.log4j
Class Priority
java.lang.Object
org.apache.log4j.Priority
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- See Also:
 
- 
FATAL_INT- See Also:
 
- 
ERROR_INT- See Also:
 
- 
WARN_INT- See Also:
 
- 
INFO_INT- See Also:
 
- 
DEBUG_INT- See Also:
 
- 
ALL_INT- See Also:
 
- 
FATALDeprecated.UseLevel.FATALinstead.
- 
ERRORDeprecated.UseLevel.ERRORinstead.
- 
WARNDeprecated.UseLevel.WARNinstead.
- 
INFODeprecated.UseLevel.INFOinstead.
- 
DEBUGDeprecated.UseLevel.DEBUGinstead.
 
- 
- 
Constructor Details- 
Priorityprotected Priority()Default constructor for deserialization.
- 
Priority
 
- 
- 
Method Details- 
equals
- 
getSyslogEquivalentReturn the syslog equivalent of this priority as an integer.- Returns:
- the Syslog Equivalent of this Priority
 
- 
isGreaterOrEqualReturnstrueif 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.- Parameters:
- r- a priority
- Returns:
- a boolean
 
- 
getAllPossiblePrioritiesDeprecated.This method will be removed with no replacement.Return all possible priorities as an array of Level objects in descending order.- Returns:
- array of all possible priorities
 
- 
toString
- 
toIntReturns the integer representation of this level.- Returns:
- integer representation of this level
 
- 
toPriorityDeprecated.Please use theLevel.toLevel(String)method instead.- Parameters:
- sArg- a string to convert to a Priority
- Returns:
- the corresponding Priority
 
- 
toPriorityDeprecated.Please use theLevel.toLevel(int)method instead.- Parameters:
- val- an integer to convert to a Priority
- Returns:
- the corresponding Priority
 
- 
toPriorityDeprecated.Please use theLevel.toLevel(int, Level)method instead.- Parameters:
- val- an integer value
- defaultPriority- a default priority value
- Returns:
- corresponding Priority value
 
- 
toPriorityDeprecated.Please use theLevel.toLevel(String, Level)method instead.- Parameters:
- sArg- string value
- defaultPriority- a default Priority
- Returns:
- a Priority
 
 
- 
Level.DEBUGinstead.