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.
Constructor Summary |
protected |
XLevel(int level,
String strLevel,
int syslogEquiv)
|
TRACE
public static final XLevel TRACE
LETHAL
public static final XLevel LETHAL
XLevel
protected XLevel(int level,
String strLevel,
int syslogEquiv)
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
.
Copyright 2000-2002 Apache Software Foundation.