public final class LoggerConfiguration
extends java.lang.Object
LoggingSystem
's logger.Modifier and Type | Class and Description |
---|---|
static class |
LoggerConfiguration.ConfigurationScope
Supported logger configuration scopes.
|
static class |
LoggerConfiguration.LevelConfiguration
Logger level configuration.
|
Constructor and Description |
---|
LoggerConfiguration(java.lang.String name,
LoggerConfiguration.LevelConfiguration levelConfiguration,
LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration)
Create a new
instance . |
LoggerConfiguration(java.lang.String name,
LogLevel configuredLevel,
LogLevel effectiveLevel)
Create a new
instance . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.lang.String |
getName()
Returns the name of the logger.
|
int |
hashCode() |
java.lang.String |
toString() |
public LoggerConfiguration(java.lang.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(java.lang.String name, LoggerConfiguration.LevelConfiguration levelConfiguration, LoggerConfiguration.LevelConfiguration inheritedLevelConfiguration)
instance
.name
- the name of the loggerlevelConfiguration
- the level configurationinheritedLevelConfiguration
- the inherited level configurationpublic java.lang.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
configurationpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object