public class LogLevel
extends java.lang.Object
implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
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 |
构造器和说明 |
---|
LogLevel(java.lang.String label,
int precedence) |
限定符和类型 | 方法和说明 |
---|---|
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.
|
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
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 LogLevelpublic static void register(LogLevel[] logLevels)
public static void register(java.util.List logLevels)
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object
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()