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 SummaryModifier 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- 
getNameReturn the name of the level.- Returns:
- the level name
 
- 
getLevelReturn the actual level value if possible.- Returns:
- the level value
- Throws:
- IllegalStateException- if this is a- customlevel
 
- 
isCustompublic boolean isCustom()Return if this is a custom level and cannot be represented byLogLevel.- Returns:
- if this is a custom level
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
ofCreate a newLoggerConfiguration.LevelConfigurationinstance of the givenLogLevel.- Parameters:
- logLevel- the log level
- Returns:
- a new LoggerConfiguration.LevelConfigurationinstance
 
- 
ofCustomCreate a newLoggerConfiguration.LevelConfigurationinstance for a custom level name.- Parameters:
- name- the log level name
- Returns:
- a new LoggerConfiguration.LevelConfigurationinstance
 
 
-