|
Log4j 1.2.8 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.lf5.LogLevel
The LogLevel class defines a set of standard logging levels. The logging Level objects are ordered and are specified by ordered integers. Enabling logging at a given level also enables logging at all higher levels.
Field Summary | |
---|---|
protected java.lang.String |
_label
|
protected int |
_precedence
|
static LogLevel |
CONFIG
|
static LogLevel |
DEBUG
|
static LogLevel |
ERROR
|
static LogLevel |
FATAL
|
static LogLevel |
FINE
|
static LogLevel |
FINER
|
static LogLevel |
FINEST
|
static LogLevel |
INFO
|
static LogLevel |
SEVERE
|
static LogLevel |
WARN
|
static LogLevel |
WARNING
|
Constructor Summary | |
---|---|
LogLevel(java.lang.String label,
int precedence)
|
Method Summary | |
---|---|
boolean |
encompasses(LogLevel level)
Returns true if the level supplied is encompassed by this level. |
boolean |
equals(java.lang.Object o)
|
static java.util.List |
getAllDefaultLevels()
|
static java.util.List |
getJdk14Levels()
|
java.lang.String |
getLabel()
Return the Label of the LogLevel. |
static java.util.List |
getLog4JLevels()
|
static java.util.Map |
getLogLevelColorMap()
|
protected int |
getPrecedence()
|
int |
hashCode()
|
static void |
register(java.util.List logLevels)
|
static LogLevel |
register(LogLevel logLevel)
Registers a used defined LogLevel. |
static void |
register(LogLevel[] logLevels)
|
static void |
resetLogLevelColorMap()
|
void |
setLogLevelColorMap(LogLevel level,
java.awt.Color color)
|
java.lang.String |
toString()
|
static LogLevel |
valueOf(java.lang.String level)
Convert a log level label into a LogLevel object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final LogLevel FATAL
public static final LogLevel ERROR
public static final LogLevel WARN
public static final LogLevel INFO
public static final LogLevel DEBUG
public static final LogLevel SEVERE
public static final LogLevel WARNING
public static final LogLevel CONFIG
public static final LogLevel FINE
public static final LogLevel FINER
public static final LogLevel FINEST
protected java.lang.String _label
protected int _precedence
Constructor Detail |
public LogLevel(java.lang.String label, int precedence)
Method Detail |
public java.lang.String getLabel()
public boolean encompasses(LogLevel level)
public static LogLevel valueOf(java.lang.String level) throws LogLevelFormatException
level
- The label of a level to be converted into a LogLevel.
LogLevelFormatException
- Is thrown when the level can not be
converted into a LogLevel.public static LogLevel register(LogLevel logLevel)
logLevel
- The log level to be registered. Cannot be a default LogLevel
public static void register(LogLevel[] logLevels)
public static void register(java.util.List logLevels)
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public void setLogLevelColorMap(LogLevel level, java.awt.Color color)
public static void resetLogLevelColorMap()
public static java.util.List getLog4JLevels()
List
of LogLevel
objects that map
to log4j Priority
objects.public static java.util.List getJdk14Levels()
public static java.util.List getAllDefaultLevels()
public static java.util.Map getLogLevelColorMap()
protected int getPrecedence()
|
Log4j 1.2.8 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |