public static final class LoggerConfiguration.LevelConfiguration extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LogLevel |
getLevel()
Return the actual level value if possible.
|
String |
getName()
Return the name of the level.
|
int |
hashCode() |
boolean |
isCustom()
Return if this is a custom level and cannot be represented by
LogLevel. |
static LoggerConfiguration.LevelConfiguration |
of(LogLevel logLevel)
Create a new
LoggerConfiguration.LevelConfiguration instance of the given LogLevel. |
static LoggerConfiguration.LevelConfiguration |
ofCustom(String name)
Create a new
LoggerConfiguration.LevelConfiguration instance for a custom level name. |
String |
toString() |
public String getName()
public LogLevel getLevel()
IllegalStateException - if this is a custom levelpublic boolean isCustom()
LogLevel.public static LoggerConfiguration.LevelConfiguration of(LogLevel logLevel)
LoggerConfiguration.LevelConfiguration instance of the given LogLevel.logLevel - the log levelLoggerConfiguration.LevelConfiguration instancepublic static LoggerConfiguration.LevelConfiguration ofCustom(String name)
LoggerConfiguration.LevelConfiguration instance for a custom level name.name - the log level nameLoggerConfiguration.LevelConfiguration instance