| java.lang.Object org.apache.log4j.Priority
All known Subclasses: org.apache.log4j.Level,
Priority | public class Priority (Code) | | Refrain from using this class directly, use
the
Level class instead.
author: Ceki Gülcü |
Constructor Summary | |
protected | Priority() Default constructor for deserialization. | protected | Priority(int level, String levelStr, int syslogEquivalent) Instantiate a level object. |
ALL_INT | final public static int ALL_INT(Code) | | |
DEBUG_INT | final public static int DEBUG_INT(Code) | | |
ERROR_INT | final public static int ERROR_INT(Code) | | |
FATAL_INT | final public static int FATAL_INT(Code) | | |
INFO_INT | final public static int INFO_INT(Code) | | |
OFF_INT | final public static int OFF_INT(Code) | | |
WARN_INT | final public static int WARN_INT(Code) | | |
level | transient int level(Code) | | |
syslogEquivalent | transient int syslogEquivalent(Code) | | |
Priority | protected Priority()(Code) | | Default constructor for deserialization.
|
Priority | protected Priority(int level, String levelStr, int syslogEquivalent)(Code) | | Instantiate a level object.
|
equals | public boolean equals(Object o)(Code) | | Two priorities are equal if their level fields are equal.
since: 1.2 |
getAllPossiblePriorities | public static Priority[] getAllPossiblePriorities()(Code) | | Return all possible priorities as an array of Level objects in
descending order.
|
getSyslogEquivalent | final public int getSyslogEquivalent()(Code) | | Return the syslog equivalent of this priority as an integer.
|
isGreaterOrEqual | public boolean isGreaterOrEqual(Priority r)(Code) | | Returns true 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.
|
toInt | final public int toInt()(Code) | | Returns the integer representation of this level.
|
toString | final public String toString()(Code) | | Returns the string representation of this priority.
|
|
|