Log4j 1.1b7

org.apache.log4j.xml.examples
Class XPriority

java.lang.Object
  |
  +--org.apache.log4j.Priority
        |
        +--org.apache.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 LETHAL
           
static XPriority TRACE
           
 
Fields inherited from class org.apache.log4j.Priority
DEBUG, DEBUG_INT, ERROR, ERROR_INT, FATAL, FATAL_INT, INFO, INFO_INT, WARN, WARN_INT
 
Constructor Summary
protected XPriority(int level, String strLevel, int syslogEquiv)
           
 
Method Summary
static Priority toPriority(int i)
          Convert an integer passed as argument to a priority.
static Priority toPriority(String sArg, Priority defaultValue)
          Convert the string passed as argument to a priority.
 
Methods inherited from class org.apache.log4j.Priority
getAllPossiblePriorities, getSyslogEquivalent, isGreaterOrEqual, toInt, toPriority, 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

LETHAL

public static final XPriority LETHAL
Constructor Detail

XPriority

protected XPriority(int level,
                    String strLevel,
                    int syslogEquiv)
Method Detail

toPriority

public static Priority toPriority(String sArg,
                                  Priority defaultValue)
Description copied from class: Priority
Convert the string passed as argument to a priority. If the conversion fails, then this method returns the value of defaultPriority.

toPriority

public static Priority toPriority(int i)
                           throws IllegalArgumentException
Description copied from class: Priority
Convert an integer passed as argument to a priority. If the conversion fails, then this method returns Priority.DEBUG.

Log4j 1.1b7

Please notify me about new log4j releases.