类 LoggerConfiguration
java.lang.Object
org.springframework.boot.logging.LoggerConfiguration
Immutable class that represents the configuration of a
LoggingSystem
's logger.- 从以下版本开始:
- 1.5.0
- 作者:
- Ben Hale, Phillip Webb
-
嵌套类概要
嵌套类修饰符和类型类说明static enum
Supported logger configuration scopes.static final class
Logger level configuration. -
构造器概要
构造器构造器说明LoggerConfiguration
(String name, LoggerConfiguration.LevelConfiguration levelConfiguration, LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration) Create a newinstance
.LoggerConfiguration
(String name, LogLevel configuredLevel, LogLevel effectiveLevel) Create a newinstance
. -
方法概要
-
构造器详细资料
-
LoggerConfiguration
Create a newinstance
.- 参数:
name
- the name of the loggerconfiguredLevel
- the configured level of the loggereffectiveLevel
- the effective level of the logger
-
LoggerConfiguration
public LoggerConfiguration(String name, LoggerConfiguration.LevelConfiguration levelConfiguration, LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration) Create a newinstance
.- 参数:
name
- the name of the loggerlevelConfiguration
- the level configurationinheritedLevelConfiguration
- the inherited level configuration- 从以下版本开始:
- 2.7.13
-
-
方法详细资料
-
getName
Returns the name of the logger.- 返回:
- the name of the logger
-
getConfiguredLevel
Returns the configured level of the logger.- 返回:
- the configured level of the logger
- 另请参阅:
-
getEffectiveLevel
Returns the effective level of the logger.- 返回:
- the effective level of the logger
- 另请参阅:
-
getLevelConfiguration
Return the level configuration, considering inherited loggers.- 返回:
- the level configuration
- 从以下版本开始:
- 2.7.13
-
getLevelConfiguration
public LoggerConfiguration.LevelConfiguration getLevelConfiguration(LoggerConfiguration.ConfigurationScope scope) Return the level configuration for the given scope.- 参数:
scope
- the configuration scope- 返回:
- the level configuration or
null
fordirect scope
results without applied configuration - 从以下版本开始:
- 2.7.13
-
equals
-
hashCode
public int hashCode() -
toString
-