Class LoggerConfiguration
java.lang.Object
org.springframework.boot.logging.LoggerConfiguration
Immutable class that represents the configuration of a 
LoggingSystem's logger.- Since:
- 1.5.0
- Author:
- Ben Hale, Phillip Webb
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumSupported logger configuration scopes.static final classLogger level configuration.
- 
Constructor SummaryConstructorsConstructorDescriptionLoggerConfiguration(String name, @Nullable LogLevel configuredLevel, LogLevel effectiveLevel) Create a newinstance.LoggerConfiguration(String name, @Nullable LoggerConfiguration.LevelConfiguration levelConfiguration, LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration) Create a newinstance.
- 
Method SummaryModifier and TypeMethodDescriptionboolean@Nullable LogLevelReturns the configured level of the logger.Returns the effective level of the logger.Return the level configuration, considering inherited loggers.@Nullable LoggerConfiguration.LevelConfigurationReturn the level configuration for the given scope.getName()Returns the name of the logger.inthashCode()toString()
- 
Constructor Details- 
LoggerConfiguration
- 
LoggerConfigurationpublic LoggerConfiguration(String name, @Nullable LoggerConfiguration.LevelConfiguration levelConfiguration, LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration) Create a newinstance.- Parameters:
- name- the name of the logger
- levelConfiguration- the level configuration
- inheritedLevelConfiguration- the inherited level configuration
- Since:
- 2.7.13
 
 
- 
- 
Method Details- 
getName
- 
getConfiguredLevelReturns the configured level of the logger.- Returns:
- the configured level of the logger
- See Also:
 
- 
getEffectiveLevelReturns the effective level of the logger.- Returns:
- the effective level of the logger
- See Also:
 
- 
getLevelConfigurationReturn the level configuration, considering inherited loggers.- Returns:
- the level configuration
- Since:
- 2.7.13
 
- 
getLevelConfigurationpublic @Nullable LoggerConfiguration.LevelConfiguration getLevelConfiguration(LoggerConfiguration.ConfigurationScope scope) Return the level configuration for the given scope.- Parameters:
- scope- the configuration scope
- Returns:
- the level configuration or nullfordirect scoperesults without applied configuration
- Since:
- 2.7.13
 
- 
equals
- 
hashCode
- 
toString
 
-