ch.qos.logback.core.joran.spi
Class SimpleRuleStore

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.joran.spi.SimpleRuleStore
All Implemented Interfaces:
RuleStore, ContextAware

public class SimpleRuleStore
extends ContextAwareBase
implements RuleStore


Field Summary
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
SimpleRuleStore(Context context)
           
 
Method Summary
 void addRule(Pattern pattern, Action action)
          Add a new rule, i.e.
 void addRule(Pattern pattern, String actionClassName)
           
 List matchActions(Pattern currentPattern)
           
 String toString()
           
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleRuleStore

public SimpleRuleStore(Context context)
Method Detail

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,
                    String actionClassName)
Specified by:
addRule in interface RuleStore

matchActions

public List matchActions(Pattern currentPattern)
Specified by:
matchActions in interface RuleStore

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2009 QOS.ch. All Rights Reserved.