Log4j 0.9.1

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.


Field Summary
static XPriority FATAL
           
static XPriority TRACE
           
 
Fields inherited from class org.log4j.Priority
ALERT, CRIT, DEBUG, EMERG, ERROR, INFO, NOTICE, strValue, value, WARN
 
Constructor Summary
protected XPriority(int value)
           
 
Method Summary
static Priority toPriority(int i)
          Converts an integer into a Priority.
static Priority toPriority(String sArg)
          Converts a String into a Priority.
 int toSyslogInt()
          Return the equivalent syslog priority integer for this Priority instance.
 
Methods inherited from class org.log4j.Priority
getAllPossiblePriorities, isAsSevereAs, toInt, toPriority, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRACE

public static final XPriority TRACE

FATAL

public static final XPriority FATAL
Constructor Detail

XPriority

protected XPriority(int value)
Method Detail

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

Log4j 0.9.1

Please notify me about new log4j releases.