Package org.springframework.boot.logging
Class LoggerConfiguration
- java.lang.Object
- org.springframework.boot.logging.LoggerConfiguration
public final class LoggerConfiguration extends Object
Immutable class that represents the configuration of aLoggingSystem
's logger.- Since:
- 1.5.0
Constructor Summary
Constructors Constructor Description LoggerConfiguration(String name, LogLevel configuredLevel, LogLevel effectiveLevel)
Create a newinstance
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
LogLevel
getConfiguredLevel()
Returns the configured level of the logger.LogLevel
getEffectiveLevel()
Returns the effective level of the logger.String
getName()
Returns the name of the logger.int
hashCode()
String
toString()
Constructor Detail
LoggerConfiguration
public LoggerConfiguration(String name, LogLevel configuredLevel, LogLevel effectiveLevel)
Create a newinstance
.- Parameters:
name
- the name of the loggerconfiguredLevel
- the configured level of the loggereffectiveLevel
- the effective level of the logger
Method Detail
getConfiguredLevel
public LogLevel getConfiguredLevel()
Returns the configured level of the logger.- Returns:
- the configured level of the logger
getEffectiveLevel
public LogLevel getEffectiveLevel()
Returns the effective level of the logger.- Returns:
- the effective level of the logger