public enum LogLevel extends Enum<LogLevel>
Enum Constant and Description |
---|
BASIC |
DEBUG |
DETAILED |
ERROR |
MINIMAL |
NOTHING |
ROWLEVEL |
Modifier and Type | Field and Description |
---|---|
static String[] |
logLevelDescriptions |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
String |
getDescription() |
int |
getLevel() |
static String[] |
getLogLevelDescriptions() |
static LogLevel |
getLogLevelForCode(String code)
Return the log level for a certain log level code
|
boolean |
isBasic() |
boolean |
isDebug() |
boolean |
isDetailed() |
boolean |
isError() |
boolean |
isMinimal() |
boolean |
isNothing() |
boolean |
isRowlevel() |
boolean |
isVisible(LogLevel filterLogLevel) |
static String[] |
logLogLevelCodes() |
static LogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogLevel NOTHING
public static final LogLevel ERROR
public static final LogLevel MINIMAL
public static final LogLevel BASIC
public static final LogLevel DETAILED
public static final LogLevel DEBUG
public static final LogLevel ROWLEVEL
public static final String[] logLevelDescriptions
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getLevel()
public String getCode()
public String getDescription()
public static LogLevel getLogLevelForCode(String code)
code
- the code to look forpublic boolean isVisible(LogLevel filterLogLevel)
filterLogLevel
- the filter log levelpublic boolean isError()
public boolean isNothing()
public boolean isMinimal()
public boolean isBasic()
public boolean isDetailed()
public boolean isDebug()
public boolean isRowlevel()
public static String[] getLogLevelDescriptions()
public static String[] logLogLevelCodes()