public enum LogLevel extends Enum<LogLevel>
| Enum Constant and Description |
|---|
DEBUG
Log messages at DEBUG level and above.
|
ERROR
Log messages at ERROR level and above.
|
INFO
Log messages at INFO level and above.
|
NATIVE
Use
Log.isLoggable(String, int) to determine the log level. |
SUPPRESS
Suppress all log messages.
|
VERBOSE
Log messages at TRACE level and above.
|
WARN
Log messages at WARN level and above.
|
| Modifier and Type | Method and Description |
|---|---|
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 SUPPRESS
public static final LogLevel ERROR
public static final LogLevel WARN
public static final LogLevel INFO
public static final LogLevel DEBUG
public static final LogLevel VERBOSE
public static final LogLevel NATIVE
Log.isLoggable(String, int) to determine the log level.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 nullCopyright © 2022 Simon Arlott. All rights reserved.