public enum LogLevel extends Enum<LogLevel>
| Enum Constant and Description |
|---|
DEBUG
debug level is designated for fine-grained log events, to help in diagnosing a problem
|
ERROR
error level is designated for events which indicates a lost of functionality,
but still allow the procedure to continue running
|
FATAL
error level is designated for events which abort the procedure
|
INFO
info level is designated for progressing events
|
TRACE
tracing level is designated for very fine-grained log events, to help in comprehending a problem program flow
|
WARN
warn level is designated for events which indicates a problem
|
| Modifier and Type | Method and Description |
|---|---|
static LogLevel |
findByInteger(int value) |
static LogLevel |
findByName(String name) |
static Set<LogLevel> |
getAll() |
int |
getIntValue() |
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 TRACE
public static final LogLevel DEBUG
public static final LogLevel INFO
public static final LogLevel WARN
public static final LogLevel ERROR
public static final LogLevel FATAL
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 getIntValue()
public static LogLevel findByInteger(int value)
Copyright © 2020. All rights reserved.