public final class LoggerConfiguration extends Object
LoggingSystem
's logger.Modifier and Type | Class and Description |
---|---|
static class |
LoggerConfiguration.ConfigurationScope
Supported logger configurations scopes.
|
static class |
LoggerConfiguration.LevelConfiguration
Logger level configuration.
|
Constructor and Description |
---|
LoggerConfiguration(String name,
LoggerConfiguration.LevelConfiguration levelConfiguration,
LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration)
Create a new
instance . |
LoggerConfiguration(String name,
LogLevel configuredLevel,
LogLevel effectiveLevel)
Create a new
instance . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
LogLevel |
getConfiguredLevel()
Returns the configured level of the logger.
|
LogLevel |
getEffectiveLevel()
Returns the effective level of the logger.
|
LoggerConfiguration.LevelConfiguration |
getLevelConfiguration()
Return the level configuration, considering inherited loggers.
|
LoggerConfiguration.LevelConfiguration |
getLevelConfiguration(LoggerConfiguration.ConfigurationScope scope)
Return the level configuration for the given scope.
|
String |
getName()
Returns the name of the logger.
|
int |
hashCode() |
String |
toString() |
public LoggerConfiguration(String name, LogLevel configuredLevel, LogLevel effectiveLevel)
instance
.name
- the name of the loggerconfiguredLevel
- the configured level of the loggereffectiveLevel
- the effective level of the loggerpublic LoggerConfiguration(String name, LoggerConfiguration.LevelConfiguration levelConfiguration, LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration)
instance
.name
- the name of the loggerlevelConfiguration
- the level configurationinheritedLevelConfiguration
- the inherited level configurationpublic String getName()
public LogLevel getConfiguredLevel()
getLevelConfiguration(ConfigurationScope)
public LogLevel getEffectiveLevel()
getLevelConfiguration(ConfigurationScope)
public LoggerConfiguration.LevelConfiguration getLevelConfiguration()
public LoggerConfiguration.LevelConfiguration getLevelConfiguration(LoggerConfiguration.ConfigurationScope scope)
scope
- the configuration scopenull
for
direct scope
results without applied
configuration