java.io.Serializable
public class UtilLoggingLevel extends Level
Modifier and Type | Field | Description |
---|---|---|
static UtilLoggingLevel |
CONFIG |
CONFIG.
|
static int |
CONFIG_INT |
Numerical value for CONFIG.
|
static UtilLoggingLevel |
FINE |
FINE.
|
static int |
FINE_INT |
Numerical value for FINE.
|
static UtilLoggingLevel |
FINER |
FINER.
|
static int |
FINER_INT |
Numerical value for FINER.
|
static UtilLoggingLevel |
FINEST |
FINEST.
|
static int |
FINEST_INT |
Numerical value for FINEST.
|
static UtilLoggingLevel |
INFO |
INFO.
|
static UtilLoggingLevel |
SEVERE |
SEVERE.
|
static int |
SEVERE_INT |
Numerical value for SEVERE.
|
static int |
UNKNOWN_INT |
Numerical value for UNKNOWN.
|
static UtilLoggingLevel |
WARNING |
WARNING.
|
static int |
WARNING_INT |
Numerical value for WARNING.
|
Modifier | Constructor | Description |
---|---|---|
protected |
UtilLoggingLevel(int level,
java.lang.String levelStr,
int syslogEquivalent) |
Create new instance.
|
Modifier and Type | Method | Description |
---|---|---|
static java.util.List |
getAllPossibleLevels() |
Gets list of supported levels.
|
static Level |
toLevel(int val) |
Gets level matching numeric value.
|
static UtilLoggingLevel |
toLevel(int val,
UtilLoggingLevel defaultLevel) |
Convert an integer passed as argument to a level.
|
static Level |
toLevel(java.lang.String s) |
Get level with specified symbolic name.
|
static Level |
toLevel(java.lang.String sArg,
Level defaultLevel) |
Get level with specified symbolic name.
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, getAllPossiblePriorities, getSyslogEquivalent, isGreaterOrEqual, toInt, toPriority, toPriority, toPriority, toPriority, toString
public static final int SEVERE_INT
public static final int WARNING_INT
public static final int CONFIG_INT
public static final int FINE_INT
public static final int FINER_INT
public static final int FINEST_INT
public static final int UNKNOWN_INT
public static final UtilLoggingLevel SEVERE
public static final UtilLoggingLevel WARNING
public static final UtilLoggingLevel INFO
public static final UtilLoggingLevel CONFIG
public static final UtilLoggingLevel FINE
public static final UtilLoggingLevel FINER
public static final UtilLoggingLevel FINEST
protected UtilLoggingLevel(int level, java.lang.String levelStr, int syslogEquivalent)
level
- numeric value for level.levelStr
- symbolic name for level.syslogEquivalent
- Equivalent syslog severity.public static UtilLoggingLevel toLevel(int val, UtilLoggingLevel defaultLevel)
val
- numeric value.defaultLevel
- level to be returned if no level matches
numeric value.public static Level toLevel(int val)
val
- numeric value.public static java.util.List getAllPossibleLevels()
public static Level toLevel(java.lang.String s)
s
- symbolic name.Copyright 2000-2007 Apache Software Foundation.