类 LoggerConfiguration.LevelConfiguration
java.lang.Object
org.springframework.boot.logging.LoggerConfiguration.LevelConfiguration
- 封闭类:
LoggerConfiguration
Logger level configuration.
- 从以下版本开始:
- 2.7.13
-
方法概要
修饰符和类型方法说明boolean
getLevel()
Return the actual level value if possible.getName()
Return the name of the level.int
hashCode()
boolean
isCustom()
Return if this is a custom level and cannot be represented byLogLevel
.Create a newLoggerConfiguration.LevelConfiguration
instance of the givenLogLevel
.Create a newLoggerConfiguration.LevelConfiguration
instance for a custom level name.toString()
-
方法详细资料
-
getName
Return the name of the level.- 返回:
- the level name
-
getLevel
Return the actual level value if possible.- 返回:
- the level value
- 抛出:
IllegalStateException
- if this is acustom
level
-
isCustom
public boolean isCustom()Return if this is a custom level and cannot be represented byLogLevel
.- 返回:
- if this is a custom level
-
equals
-
hashCode
public int hashCode() -
toString
-
of
Create a newLoggerConfiguration.LevelConfiguration
instance of the givenLogLevel
.- 参数:
logLevel
- the log level- 返回:
- a new
LoggerConfiguration.LevelConfiguration
instance
-
ofCustom
Create a newLoggerConfiguration.LevelConfiguration
instance for a custom level name.- 参数:
name
- the log level name- 返回:
- a new
LoggerConfiguration.LevelConfiguration
instance
-