类 LoggerConfiguration.LevelConfiguration
java.lang.Object
org.springframework.boot.logging.LoggerConfiguration.LevelConfiguration
- 封闭类:
LoggerConfiguration
Logger level configuration.
- 从以下版本开始:
- 2.7.13
-
方法概要
修饰符和类型方法说明booleangetLevel()Return the actual level value if possible.getName()Return the name of the level.inthashCode()booleanisCustom()Return if this is a custom level and cannot be represented byLogLevel.Create a newLoggerConfiguration.LevelConfigurationinstance of the givenLogLevel.Create a newLoggerConfiguration.LevelConfigurationinstance 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 acustomlevel
-
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.LevelConfigurationinstance of the givenLogLevel.- 参数:
logLevel- the log level- 返回:
- a new
LoggerConfiguration.LevelConfigurationinstance
-
ofCustom
Create a newLoggerConfiguration.LevelConfigurationinstance for a custom level name.- 参数:
name- the log level name- 返回:
- a new
LoggerConfiguration.LevelConfigurationinstance
-