public static enum Logger.LogLevel extends Enum<Logger.LogLevel>
Enum Constant and Description |
---|
ALL |
DEBUG |
ERROR |
FATAL |
INFO |
NONE |
TRACE |
WARN |
Modifier and Type | Method and Description |
---|---|
static Logger.LogLevel |
get(int ordinal)
Gets the log level from the ordinal.
|
static Logger.LogLevel |
get(String name)
Gets the log level from its name.
|
static Logger.LogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Logger.LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Logger.LogLevel NONE
public static final Logger.LogLevel FATAL
public static final Logger.LogLevel ERROR
public static final Logger.LogLevel WARN
public static final Logger.LogLevel INFO
public static final Logger.LogLevel DEBUG
public static final Logger.LogLevel TRACE
public static final Logger.LogLevel ALL
public static Logger.LogLevel[] values()
for (Logger.LogLevel c : Logger.LogLevel.values()) System.out.println(c);
public static Logger.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 static Logger.LogLevel get(int ordinal)
ordinal
- The ordinal.@Nonnull @CheckReturnValue public static Logger.LogLevel get(@Nonnull String name)
name
- The name.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.