org.apache.log4j.helpers
Class UtilLoggingLevel
java.lang.Object
|
+--org.apache.log4j.Priority
|
+--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
SEVERE_INT
public static final int SEVERE_INT
WARNING_INT
public static final int WARNING_INT
INFO_INT
public static final int INFO_INT
CONFIG_INT
public static final int CONFIG_INT
FINE_INT
public static final int FINE_INT
FINER_INT
public static final int FINER_INT
FINEST_INT
public static final int FINEST_INT
UNKNOWN_INT
public static final int UNKNOWN_INT
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
.- Following copied from class:
org.apache.log4j.Level
- Parameters:
val
- The level integer value- Returns:
- The matching Level object
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
.- Following copied from class:
org.apache.log4j.Level
- Parameters:
sArg
- The level name- Returns:
- The matching Level object
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
.- Following copied from class:
org.apache.log4j.Level
- Parameters:
sArg
- The Level namedefaultLevel
- Level to return if no match is found- Returns:
- The matching Level
Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.