Package org.apache.log4j
Class Priority
- java.lang.Object
-
- org.apache.log4j.Priority
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_INT
Deprecated.static Priority
DEBUG
Deprecated.UseLevel.DEBUG
instead.static int
DEBUG_INT
Deprecated.static Priority
ERROR
Deprecated.UseLevel.ERROR
instead.static int
ERROR_INT
Deprecated.static Priority
FATAL
Deprecated.UseLevel.FATAL
instead.static int
FATAL_INT
Deprecated.static Priority
INFO
Deprecated.UseLevel.INFO
instead.static int
INFO_INT
Deprecated.static int
OFF_INT
Deprecated.static Priority
WARN
Deprecated.UseLevel.WARN
instead.static int
WARN_INT
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(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.int
getSyslogEquivalent()
Deprecated.Return the syslog equivalent of this priority as an integer.boolean
isGreaterOrEqual(Priority r)
Deprecated.Returnstrue
if this level has a higher or equal level than the level passed as argument,false
otherwise.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(java.lang.String sArg)
Deprecated.Please use theLevel.toLevel(String)
method instead.static Priority
toPriority(java.lang.String sArg, Priority defaultPriority)
Deprecated.Please use theLevel.toLevel(String, Level)
method instead.java.lang.String
toString()
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.FATAL
instead.
-
ERROR
public static final Priority ERROR
Deprecated.UseLevel.ERROR
instead.
-
WARN
public static final Priority WARN
Deprecated.UseLevel.WARN
instead.
-
INFO
public static final Priority INFO
Deprecated.UseLevel.INFO
instead.
-
DEBUG
public static final Priority DEBUG
Deprecated.UseLevel.DEBUG
instead.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Two priorities are equal if their level fields are equal.- Overrides:
equals
in 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.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
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:
toString
in 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.
-
-