org.apache.geronimo.system.logging.log4j
Class XLevel
java.lang.Object
org.apache.log4j.Priority
org.apache.log4j.Level
org.apache.geronimo.system.logging.log4j.XLevel
- All Implemented Interfaces:
- Serializable
public final class XLevel
- extends Level
Extention levels for Log4j
- See Also:
- Serialized Form
Field Summary |
static XLevel |
TRACE
The Log4j Level Object to use for trace level messages |
static int |
TRACE_INT
|
Constructor Summary |
protected |
XLevel(int level,
String name,
int syslogEquiv)
|
TRACE_INT
public static final int TRACE_INT
- See Also:
- Constant Field Values
TRACE
public static final XLevel TRACE
- The Log4j Level Object to use for trace level messages
XLevel
protected XLevel(int level,
String name,
int syslogEquiv)
toLevel
public static Level toLevel(String name)
- Convert the String argument to a level. If the conversion
fails then this method returns
TRACE
.
toLevel
public static Level toLevel(String name,
Level defaultValue)
- Convert the String argument to a level. If the conversion
fails, return the level specified by the second argument,
i.e. defaultValue.
toLevel
public static Level toLevel(int level)
throws IllegalArgumentException
- Convert an integer passed as argument to a level. If the
conversion fails, then this method returns
Level.DEBUG
.
- Throws:
IllegalArgumentException
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.