public class LoggingManagerImpl extends java.lang.Object implements LogFilterSettings
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
LoggingManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyFilter(java.lang.String key,
java.lang.String value)
Restricts collected events to only those that have the matching value, IF the key is present in the MDC context.
|
protected LoggingSystemTurboFilter |
baseFilter()
Returns basefilter, first initializing and adding to logger context if needed.
|
void |
clearPropertyLevel(java.lang.String key,
java.lang.String value)
Removes a specific key/value level from the logging system.
|
void |
clearPropertyLevels()
Clears all property levels defined in the system.
|
protected ch.qos.logback.classic.LoggerContext |
getLoggerContext() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Level>> |
propertyFilterSettings()
Returns a map of the property keys currently applied, as well as their values and the Level set for each value
|
void |
removePropertyFilter(java.lang.String key,
java.lang.String value)
Removes a filter previously registered with addPropertyFilter.
|
void |
setLevel(java.lang.String logger,
Level level)
Sets the level for the specified logger.
|
void |
setPropertyLevel(java.lang.String key,
java.lang.String value,
Level level)
Sets a level for a specific MDC property/value, creating the property/value if necessary.
|
void |
shutdown() |
void |
startup() |
public void startup()
public void shutdown()
protected LoggingSystemTurboFilter baseFilter()
public void setLevel(java.lang.String logger,
Level level)
LogFilterSettingssetLevel in interface LogFilterSettingspublic void setPropertyLevel(java.lang.String key,
java.lang.String value,
Level level)
LogFilterSettingssetPropertyLevel in interface LogFilterSettingskey - the name of the MDC property keyvalue - the specific value belonging to the key that the Level should apply to.level - The level to set the MDC key value to.public void clearPropertyLevel(java.lang.String key,
java.lang.String value)
LogFilterSettingsclearPropertyLevel in interface LogFilterSettingspublic void clearPropertyLevels()
LogFilterSettingsclearPropertyLevels in interface LogFilterSettingspublic void addPropertyFilter(java.lang.String key,
java.lang.String value)
LogFilterSettingsaddPropertyFilter in interface LogFilterSettingskey - name of the property filter to addvalue - the value for the given key that should be filtered forpublic void removePropertyFilter(java.lang.String key,
java.lang.String value)
LogFilterSettingsremovePropertyFilter in interface LogFilterSettingspublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,Level>> propertyFilterSettings()
propertyFilterSettings in interface LogFilterSettingsprotected ch.qos.logback.classic.LoggerContext getLoggerContext()