Log4j 1.2beta3

org.apache.log4j.xml.examples
Class XLevel

java.lang.Object
  |
  +--org.apache.log4j.Priority
        |
        +--org.apache.log4j.Level
              |
              +--org.apache.log4j.xml.examples.XLevel

public class XLevel
extends Level

This class introduces a new level level called TRACE. TRACE has lower level than DEBUG.


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

LETHAL

public static final XLevel LETHAL
Constructor Detail

XLevel

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

toLevel

public static Level toLevel(String sArg)
Convert the string passed as argument to a level. If the conversion fails, then this method returns TRACE.

toLevel

public static Priority toLevel(String sArg,
                               Priority defaultValue)

toLevel

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

Log4j 1.2beta3

Copyright 2000-2002 Apache Software Foundation.