|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.lf5.LogLevel
public class 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 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(String label,
int precedence)
|
Method Summary | |
---|---|
boolean |
encompasses(LogLevel level)
Returns true if the level supplied is encompassed by this level. |
boolean |
equals(Object o)
|
static List |
getAllDefaultLevels()
|
static List |
getJdk14Levels()
|
String |
getLabel()
Return the Label of the LogLevel. |
static List |
getLog4JLevels()
|
static Map |
getLogLevelColorMap()
|
protected int |
getPrecedence()
|
int |
hashCode()
|
static void |
register(List logLevels)
|
static LogLevel |
register(LogLevel logLevel)
Registers a used defined LogLevel. |
static void |
register(LogLevel[] logLevels)
|
static void |
resetLogLevelColorMap()
|
void |
setLogLevelColorMap(LogLevel level,
Color color)
|
String |
toString()
|
static LogLevel |
valueOf(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 String _label
protected int _precedence
Constructor Detail |
---|
public LogLevel(String label, int precedence)
Method Detail |
---|
public String getLabel()
public boolean encompasses(LogLevel level)
public static LogLevel valueOf(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(List logLevels)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void setLogLevelColorMap(LogLevel level, Color color)
public static void resetLogLevelColorMap()
public static List getLog4JLevels()
List
of LogLevel
objects that map
to log4j Priority
objects.public static List getJdk14Levels()
public static List getAllDefaultLevels()
public static Map getLogLevelColorMap()
protected int getPrecedence()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |