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