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
public class SimpleRuleStore
- extends ContextAwareBase
- implements RuleStore
This class implements the RuleStore
interface. It is the rule store
implementation used by default in Joran.
- Author:
- Ceki Gülcü
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleRuleStore
public SimpleRuleStore(Context context)
addRule
public void addRule(Pattern pattern,
Action action)
- 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.
- Specified by:
addRule
in interface RuleStore
addRule
public void addRule(Pattern pattern,
java.lang.String actionClassName)
- Specified by:
addRule
in interface RuleStore
matchActions
public java.util.List matchActions(Pattern currentPattern)
- Specified by:
matchActions
in interface RuleStore
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2005-2010 QOS.ch. All Rights Reserved.