org.log4j.xml.examples
Class XPriority
java.lang.Object
|
+--org.log4j.Priority
|
+--org.log4j.xml.examples.XPriority
- public class XPriority
- extends Priority
This class introduces a new priority level called TRACE. TRACE has
lower priority than DEBUG.
Constructor Summary |
protected |
XPriority(int value)
|
TRACE
public static final XPriority TRACE
FATAL
public static final XPriority FATAL
XPriority
protected XPriority(int value)
toPriority
public static Priority toPriority(String sArg)
- Description copied from class:
Priority
- Converts a String into a Priority. This method is used internally
in configuration files.
If the argument is not one of "DEBUG", "INFO", ..., "EMERG"
then the the default value Priority.DEBUG
is
returned.
toPriority
public static Priority toPriority(int i)
throws IllegalArgumentException
- Description copied from class:
Priority
- Converts an integer into a Priority. This method is used to read
in a priority serialized as an interger.
toSyslogInt
public int toSyslogInt()
throws IllegalStateException
- Description copied from class:
Priority
- Return the equivalent syslog priority integer for this Priority
instance.
Sub-classes of priority must override this method to
return their own syslog equivalent, otherwise an IllegalStateException
may be thrown.
- Overrides:
toSyslogInt
in class Priority
Please notify me about new log4j releases.