org.apache.log4j.helpers
Class UtilLoggingLevel
java.lang.Object
org.apache.log4j.Level
org.apache.log4j.helpers.UtilLoggingLevel
- All Implemented Interfaces:
- Serializable
- public class UtilLoggingLevel
- extends Level
An extension of the Level class that provides support for java.util.logging
Levels.
- Author:
- Scott Deboy
- See Also:
- Serialized Form
Fields inherited from class org.apache.log4j.Level |
ALL, ALL_INT, DEBUG, DEBUG_INT, ERROR, ERROR_INT, FATAL, FATAL_INT, OFF, OFF_INT, TRACE, TRACE_INT, WARN, WARN_INT |
SEVERE_INT
public static final int SEVERE_INT
- See Also:
- Constant Field Values
WARNING_INT
public static final int WARNING_INT
- See Also:
- Constant Field Values
INFO_INT
public static final int INFO_INT
- See Also:
- Constant Field Values
CONFIG_INT
public static final int CONFIG_INT
- See Also:
- Constant Field Values
FINE_INT
public static final int FINE_INT
- See Also:
- Constant Field Values
FINER_INT
public static final int FINER_INT
- See Also:
- Constant Field Values
FINEST_INT
public static final int FINEST_INT
- See Also:
- Constant Field Values
UNKNOWN_INT
public static final int UNKNOWN_INT
- See Also:
- Constant Field Values
SEVERE
public static final UtilLoggingLevel SEVERE
WARNING
public static final UtilLoggingLevel WARNING
INFO
public static final UtilLoggingLevel INFO
CONFIG
public static final UtilLoggingLevel CONFIG
FINE
public static final UtilLoggingLevel FINE
FINER
public static final UtilLoggingLevel FINER
FINEST
public static final UtilLoggingLevel FINEST
UtilLoggingLevel
protected UtilLoggingLevel(int level,
String levelStr,
int syslogEquivalent)
toLevel
public static UtilLoggingLevel toLevel(int val,
UtilLoggingLevel defaultLevel)
- Convert an integer passed as argument to a level. If the
conversion fails, then this method returns the specified default.
toLevel
public static Level toLevel(int val)
- Description copied from class:
Level
- Convert an integer passed as argument to a level. If the
conversion fails, then this method returns
Level.DEBUG
.
getAllPossibleLevels
public static List getAllPossibleLevels()
toLevel
public static Level toLevel(String s)
- Description copied from class:
Level
- Convert the string passed as argument to a level. If the
conversion fails, then this method returns
Level.DEBUG
.
toLevel
public static Level toLevel(String sArg,
Level defaultLevel)
- Description copied from class:
Level
- Convert the string passed as argument to a level. If the
conversion fails, then this method returns the
defaultLevel
.
Copyright 2000-2005 Apache Software Foundation.