Package org.springframework.boot.logging
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, LoggerConfiguration.LevelConfiguration levelConfiguration, LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration) Create a newinstance.LoggerConfiguration(String name, LogLevel configuredLevel, LogLevel effectiveLevel) Create a newinstance.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the configured level of the logger.Returns the effective level of the logger.Return the level configuration, considering inherited loggers.Return the level configuration for the given scope.getName()Returns the name of the logger.inthashCode()toString()
- 
Constructor Details- 
LoggerConfigurationCreate a newinstance.- Parameters:
- name- the name of the logger
- configuredLevel- the configured level of the logger
- effectiveLevel- the effective level of the logger
 
- 
LoggerConfigurationpublic LoggerConfiguration(String name, 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- 
getNameReturns the name of the logger.- Returns:
- the name of the logger
 
- 
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 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
- 
hashCodepublic int hashCode()
- 
toString
 
-