Class JoranConfiguratorWrapper
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.GenericXMLConfigurator
ch.qos.logback.core.joran.JoranConfiguratorBase<ch.qos.logback.classic.spi.ILoggingEvent>
ch.qos.logback.classic.joran.JoranConfigurator
org.apache.sling.commons.log.logback.internal.joran.JoranConfiguratorWrapper
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware
public class JoranConfiguratorWrapper
extends ch.qos.logback.classic.joran.JoranConfigurator
Wrap the original JoronConfigurator to provide tracking of
the appender-ref that happen during processing
-
Field Summary
Fields inherited from class ch.qos.logback.core.joran.GenericXMLConfigurator
modelInterpretationContext, saxEventInterpreterFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionJoranConfiguratorWrapper(@NotNull org.apache.sling.commons.log.logback.internal.LogConfigManager manager) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElementSelectorAndActionAssociations(ch.qos.logback.core.joran.spi.RuleStore rs) protected voidaddModelHandlerAssociations(@NotNull ch.qos.logback.core.model.processor.DefaultProcessor defaultProcessor) Subclass to provide a custom wrapper around the AppenderRef handling so we can keep track of what appenders were added to which loggersvoidOverride to allow the LogConfigManager to contribute substitution propertiesMethods inherited from class ch.qos.logback.classic.joran.JoranConfigurator
addDefaultNestedComponentRegistryRules, sanityCheckMethods inherited from class ch.qos.logback.core.joran.JoranConfiguratorBase
getInterpretationContext, performCheck, setImplicitRuleSupplierMethods inherited from class ch.qos.logback.core.joran.GenericXMLConfigurator
buildModelFromSaxEventList, buildSaxEventInterpreter, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, getModelInterpretationContext, getRuleStore, informContextOfURLUsedForConfiguration, initialElementPath, populateSaxEventRecorder, processModel, recallSafeConfiguration, registerSafeConfigurationMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
JoranConfiguratorWrapper
public JoranConfiguratorWrapper(@NotNull @NotNull org.apache.sling.commons.log.logback.internal.LogConfigManager manager) Constructor- Parameters:
manager- the LogConfigManager that created the wrapper
-
-
Method Details
-
buildModelInterpretationContext
public void buildModelInterpretationContext()Override to allow the LogConfigManager to contribute substitution properties- Overrides:
buildModelInterpretationContextin classch.qos.logback.classic.joran.JoranConfigurator
-
addModelHandlerAssociations
protected void addModelHandlerAssociations(@NotNull @NotNull ch.qos.logback.core.model.processor.DefaultProcessor defaultProcessor) Subclass to provide a custom wrapper around the AppenderRef handling so we can keep track of what appenders were added to which loggers- Overrides:
addModelHandlerAssociationsin classch.qos.logback.classic.joran.JoranConfigurator
-
addElementSelectorAndActionAssociations
public void addElementSelectorAndActionAssociations(ch.qos.logback.core.joran.spi.RuleStore rs) - Overrides:
addElementSelectorAndActionAssociationsin classch.qos.logback.classic.joran.JoranConfigurator
-