Package org.springframework.boot.logging
Class LoggerConfiguration.LevelConfiguration
java.lang.Object
org.springframework.boot.logging.LoggerConfiguration.LevelConfiguration
- Enclosing class:
- LoggerConfiguration
Logger level configuration.
- Since:
- 2.7.13
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetLevel()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()
-
Method Details
-
getName
Return the name of the level.- Returns:
- the level name
-
getLevel
Return the actual level value if possible.- Returns:
- the level value
- Throws:
IllegalStateException- if this is acustomlevel
-
isCustom
public boolean isCustom()Return if this is a custom level and cannot be represented byLogLevel.- Returns:
- if this is a custom level
-
equals
-
hashCode
public int hashCode() -
toString
-
of
Create a newLoggerConfiguration.LevelConfigurationinstance of the givenLogLevel.- Parameters:
logLevel- the log level- Returns:
- a new
LoggerConfiguration.LevelConfigurationinstance
-
ofCustom
Create a newLoggerConfiguration.LevelConfigurationinstance for a custom level name.- Parameters:
name- the log level name- Returns:
- a new
LoggerConfiguration.LevelConfigurationinstance
-