public enum RestAPILogLevelEnum extends Enum<RestAPILogLevelEnum>
Enum Constant and Description |
---|
DEBUG
Debug level
|
ERROR
Level used for errors and exceptions
|
INFO
Default level used for user messages
|
INTERNAL
Finest level for debugging method calls
|
OFF
No logging
|
WARNING
Level used for warnings
|
Modifier and Type | Method and Description |
---|---|
static RestAPILogLevelEnum |
fromInt(Integer i)
Cast the Integer to a LogLevel Possible Values: 0 - OFF 5 - EXECUTION 10 - ERROR 15 - WARNING 20 - INFO 25 -
DEBUG 30 - INTERNAL
|
static String[] |
getValues()
Get the possible names of the enum.
|
boolean |
includesLogLevel(RestAPILogLevelEnum l)
Checks if the given loglevel is included in the other
|
Integer |
toInt()
Get the Int-Value of the given LogLevel
|
static RestAPILogLevelEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestAPILogLevelEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestAPILogLevelEnum OFF
public static final RestAPILogLevelEnum ERROR
public static final RestAPILogLevelEnum WARNING
public static final RestAPILogLevelEnum INFO
public static final RestAPILogLevelEnum DEBUG
public static final RestAPILogLevelEnum INTERNAL
public static RestAPILogLevelEnum[] values()
for (RestAPILogLevelEnum c : RestAPILogLevelEnum.values()) System.out.println(c);
public static RestAPILogLevelEnum 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@Nullable public static RestAPILogLevelEnum fromInt(Integer i)
i
- Integerpublic static String[] getValues()
public Integer toInt()
public boolean includesLogLevel(RestAPILogLevelEnum l)
l
- loglevel that should be includedCopyright © 2016–2023 MicroNova AG. All rights reserved.