public enum LogLevel extends Enum<LogLevel>
Enum Constant and Description |
---|
DEBUG
Also messages with technical character are printed
|
INFO
At most messages with information character are printed
|
Modifier and Type | Field and Description |
---|---|
static LogLevel |
DEFAULT
The fallback log level, which is used whenever nothing else is specified.
|
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier() |
static LogLevel |
getValueOrDefault(String identifier)
Returns the enum value for the given identifier.
|
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 INFO
public static final LogLevel DEBUG
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 null@Nonnull public static LogLevel getValueOrDefault(@Nullable String identifier)
INFO
if no corresponding value is found.identifier
- The String identifierpublic String getIdentifier()
Copyright © 2021 SAP SE. All rights reserved.