Package org.apache.log4j
Class Priority
- java.lang.Object
-
- org.apache.log4j.Priority
-
-
Field Summary
Fields Modifier and Type Field Description static intALL_INTDeprecated.static PriorityDEBUGDeprecated.UseLevel.DEBUGinstead.static intDEBUG_INTDeprecated.static PriorityERRORDeprecated.UseLevel.ERRORinstead.static intERROR_INTDeprecated.static PriorityFATALDeprecated.UseLevel.FATALinstead.static intFATAL_INTDeprecated.static PriorityINFODeprecated.UseLevel.INFOinstead.static intINFO_INTDeprecated.static intOFF_INTDeprecated.static PriorityWARNDeprecated.UseLevel.WARNinstead.static intWARN_INTDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.Two priorities are equal if their level fields are equal.static Priority[]getAllPossiblePriorities()Deprecated.This method will be removed with no replacement.intgetSyslogEquivalent()Deprecated.Return the syslog equivalent of this priority as an integer.booleanisGreaterOrEqual(Priority r)Deprecated.Returnstrueif this level has a higher or equal level than the level passed as argument,falseotherwise.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(java.lang.String sArg)Deprecated.Please use theLevel.toLevel(String)method instead.static PrioritytoPriority(java.lang.String sArg, Priority defaultPriority)Deprecated.Please use theLevel.toLevel(String, Level)method instead.java.lang.StringtoString()Deprecated.Returns the string representation of this priority.
-
-
-
Field Detail
-
OFF_INT
public static final int OFF_INT
Deprecated.- See Also:
- Constant Field Values
-
FATAL_INT
public static final int FATAL_INT
Deprecated.- See Also:
- Constant Field Values
-
ERROR_INT
public static final int ERROR_INT
Deprecated.- See Also:
- Constant Field Values
-
WARN_INT
public static final int WARN_INT
Deprecated.- See Also:
- Constant Field Values
-
INFO_INT
public static final int INFO_INT
Deprecated.- See Also:
- Constant Field Values
-
DEBUG_INT
public static final int DEBUG_INT
Deprecated.- See Also:
- Constant Field Values
-
ALL_INT
public static final int ALL_INT
Deprecated.- See Also:
- Constant Field Values
-
FATAL
public static final Priority FATAL
Deprecated.UseLevel.FATALinstead.
-
ERROR
public static final Priority ERROR
Deprecated.UseLevel.ERRORinstead.
-
WARN
public static final Priority WARN
Deprecated.UseLevel.WARNinstead.
-
INFO
public static final Priority INFO
Deprecated.UseLevel.INFOinstead.
-
DEBUG
public static final Priority DEBUG
Deprecated.UseLevel.DEBUGinstead.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Two priorities are equal if their level fields are equal.- Overrides:
equalsin classjava.lang.Object- Since:
- 1.2
-
getSyslogEquivalent
public final int getSyslogEquivalent()
Deprecated.Return the syslog equivalent of this priority as an integer.
-
isGreaterOrEqual
public boolean isGreaterOrEqual(Priority r)
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
public static Priority[] getAllPossiblePriorities()
Deprecated.This method will be removed with no replacement.Return all possible priorities as an array of Level objects in descending order.
-
toString
public final java.lang.String toString()
Deprecated.Returns the string representation of this priority.- Overrides:
toStringin classjava.lang.Object
-
toInt
public final int toInt()
Deprecated.Returns the integer representation of this level.
-
toPriority
public static Priority toPriority(java.lang.String sArg)
Deprecated.Please use theLevel.toLevel(String)method instead.
-
toPriority
public static Priority toPriority(int val)
Deprecated.Please use theLevel.toLevel(int)method instead.
-
toPriority
public static Priority toPriority(int val, Priority defaultPriority)
Deprecated.Please use theLevel.toLevel(int, Level)method instead.
-
toPriority
public static Priority toPriority(java.lang.String sArg, Priority defaultPriority)
Deprecated.Please use theLevel.toLevel(String, Level)method instead.
-
-