Package ch.qos.logback.core.joran.spi
Class SimpleRuleStore
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.spi.SimpleRuleStore
- All Implemented Interfaces:
RuleStore,ContextAware
This class implements the
RuleStore interface. It is the rule store
implementation used by default in Joran.- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRule(ElementSelector elementSelector, String actionClassName) Add a new rule, given by a pattern and an action class (String).voidaddRule(ElementSelector elementSelector, Supplier<Action> actionSupplier) Add a new rule, i.e.voidaddTransparentPathPart(String pathPart) matchActions(ElementPath elementPath) Return a list of actions matching a pattern.toString()Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
SimpleRuleStore
-
-
Method Details
-
addTransparentPathPart
- Specified by:
addTransparentPathPartin interfaceRuleStore
-
addRule
Add a new rule, i.e. a pattern, action pair to the rule store.Note that the added action's LoggerRepository will be set in the process.
-
addRule
Description copied from interface:RuleStoreAdd a new rule, given by a pattern and an action class (String). -
matchActions
Description copied from interface:RuleStoreReturn a list of actions matching a pattern.- Specified by:
matchActionsin interfaceRuleStore- Parameters:
elementPath- the path to match for- Returns:
- list of matching actions
-
toString
-