public class LogLevel extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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.
|
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
public LogLevel(String label, int precedence)
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 LogLevelpublic static void register(LogLevel[] logLevels)
public static void register(List logLevels)
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()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.