public enum LogLevel extends Enum<LogLevel>
| 枚举常量和说明 |
|---|
ERROR
Indicates that log level is at error level.
|
INFORMATIONAL
Indicates that log level is at information level.
|
NOT_SET
Indicates that no log level is set.
|
VERBOSE
Indicates that log level is at verbose level.
|
WARNING
Indicates that log level is at warning level.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static LogLevel |
fromString(String logLevelVal) |
int |
getLogLevel() |
static LogLevel |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static LogLevel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final LogLevel VERBOSE
public static final LogLevel INFORMATIONAL
public static final LogLevel WARNING
public static final LogLevel ERROR
public static final LogLevel NOT_SET
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getLogLevel()
Copyright © 2024. All rights reserved.