|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.Priority
org.apache.log4j.Level
org.apache.log4j.helpers.UtilLoggingLevel
public class UtilLoggingLevel
An extension of the Level class that provides support for java.util.logging Levels.
Field Summary | |
---|---|
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 int |
INFO_INT
Numerical value for 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. |
Fields inherited from class org.apache.log4j.Level |
---|
ALL, DEBUG, ERROR, FATAL, OFF, TRACE, TRACE_INT, WARN |
Fields inherited from class org.apache.log4j.Priority |
---|
ALL_INT, DEBUG_INT, ERROR_INT, FATAL_INT, OFF_INT, WARN_INT |
Constructor Summary | |
---|---|
protected |
UtilLoggingLevel(int level,
java.lang.String levelStr,
int syslogEquivalent)
Create new instance. |
Method Summary | |
---|---|
static java.util.List |
getAllPossibleLevels()
Gets list of supported levels. |
static org.apache.log4j.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 org.apache.log4j.Level |
toLevel(java.lang.String s)
Get level with specified symbolic name. |
static org.apache.log4j.Level |
toLevel(java.lang.String sArg,
org.apache.log4j.Level defaultLevel)
Get level with specified symbolic name. |
Methods inherited from class org.apache.log4j.Level |
---|
toLevel |
Methods inherited from class org.apache.log4j.Priority |
---|
equals, getAllPossiblePriorities, getSyslogEquivalent, isGreaterOrEqual, toInt, toPriority, toPriority, toPriority, toPriority, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SEVERE_INT
public static final int WARNING_INT
public static final int INFO_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
Constructor Detail |
---|
protected UtilLoggingLevel(int level, java.lang.String levelStr, int syslogEquivalent)
level
- numeric value for level.levelStr
- symbolic name for level.syslogEquivalent
- Equivalent syslog severity.Method Detail |
---|
public static UtilLoggingLevel toLevel(int val, UtilLoggingLevel defaultLevel)
val
- numeric value.defaultLevel
- level to be returned if no level matches
numeric value.
public static org.apache.log4j.Level toLevel(int val)
val
- numeric value.
public static java.util.List getAllPossibleLevels()
public static org.apache.log4j.Level toLevel(java.lang.String s)
s
- symbolic name.
public static org.apache.log4j.Level toLevel(java.lang.String sArg, org.apache.log4j.Level defaultLevel)
sArg
- symbolic name.defaultLevel
- level to return if no match.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.