当前位置: 首页>>代码示例>>Java>>正文


Java RuleStore类代码示例

本文整理汇总了Java中ch.qos.logback.core.joran.spi.RuleStore的典型用法代码示例。如果您正苦于以下问题:Java RuleStore类的具体用法?Java RuleStore怎么用?Java RuleStore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RuleStore类属于ch.qos.logback.core.joran.spi包,在下文中一共展示了RuleStore类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
public void addInstanceRules(RuleStore rs) {
  super.addInstanceRules(rs);
  
  rs.addRule(new ElementSelector("configuration"), new ConfigurationAction());
  rs.addRule(new ElementSelector("configuration/appender-ref"), new AppenderRefAction());
  
  rs.addRule(new ElementSelector("configuration/appender/sift"), new SiftAction());
  rs.addRule(new ElementSelector("configuration/appender/sift/*"), new NOPAction());
  
  rs.addRule(new ElementSelector("configuration/evaluator"), new EvaluatorAction());

  // add if-then-else support
  rs.addRule(new ElementSelector("*/if"), new IfAction());
  rs.addRule(new ElementSelector("*/if/then"), new ThenAction());
  rs.addRule(new ElementSelector("*/if/then/*"), new NOPAction());
  rs.addRule(new ElementSelector("*/if/else"), new ElseAction());
  rs.addRule(new ElementSelector("*/if/else/*"), new NOPAction());

  rs.addRule(new ElementSelector("configuration/include"), new IncludeAction());
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:22,代码来源:JoranConfigurator.java

示例2: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
public void addInstanceRules(RuleStore rs) {
	super.addInstanceRules(rs);
	Environment environment = this.initializationContext.getEnvironment();
	rs.addRule(new ElementSelector("configuration/springProperty"),
			new SpringPropertyAction(environment));
	rs.addRule(new ElementSelector("*/springProfile"),
			new SpringProfileAction(this.initializationContext.getEnvironment()));
	rs.addRule(new ElementSelector("*/springProfile/*"), new NOPAction());
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:11,代码来源:SpringBootJoranConfigurator.java

示例3: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {

  // is "configuration/variable" referenced in the docs?
  rs.addRule(new ElementSelector("configuration/variable"), new PropertyAction());
  rs.addRule(new ElementSelector("configuration/property"), new PropertyAction());

  rs.addRule(new ElementSelector("configuration/substitutionProperty"),
      new PropertyAction());

  rs.addRule(new ElementSelector("configuration/timestamp"), new TimestampAction());
  rs.addRule(new ElementSelector("configuration/shutdownHook"), new ShutdownHookAction());
  rs.addRule(new ElementSelector("configuration/define"), new DefinePropertyAction());

  // the contextProperty pattern is deprecated. It is undocumented
  // and will be dropped in future versions of logback
  rs.addRule(new ElementSelector("configuration/contextProperty"),
      new ContextPropertyAction());

  rs.addRule(new ElementSelector("configuration/conversionRule"),
      new ConversionRuleAction());

  rs.addRule(new ElementSelector("configuration/statusListener"),
      new StatusListenerAction());

  rs.addRule(new ElementSelector("configuration/appender"), new AppenderAction());
  rs.addRule(new ElementSelector("configuration/appender/appender-ref"),
      new AppenderRefAction());
  rs.addRule(new ElementSelector("configuration/newRule"), new NewRuleAction());
  rs.addRule(new ElementSelector("*/param"), new ParamAction());
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:32,代码来源:JoranConfiguratorBase.java

示例4: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
  for(ElementSelector elementSelector : rulesMap.keySet()) {
    Action action = rulesMap.get(elementSelector);
    rs.addRule(elementSelector, action);
  }
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:8,代码来源:TrivialConfigurator.java

示例5: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
  for (ElementSelector elementSelector : ruleMap.keySet()) {
    Action action = ruleMap.get(elementSelector);
    rs.addRule(elementSelector, action);
  }
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:8,代码来源:SimpleConfigurator.java

示例6: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void addInstanceRules(RuleStore ruleStore) {
    super.addInstanceRules(ruleStore);
    ruleStore.addRule(new ElementSelector("*/springProfile"), new SpringProfileAction());
    ruleStore.addRule(new ElementSelector("*/springProfile/*"), new NOPAction());
    ruleStore.addRule(new ElementSelector("configuration/springProperty"), new SpringPropertyAction());
}
 
开发者ID:akihyro,项目名称:logback-access-spring-boot-starter,代码行数:9,代码来源:LogbackAccessJoranConfigurator.java

示例7: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
  for (Pattern pattern : ruleMap.keySet()) {
    Action action = ruleMap.get(pattern);
    rs.addRule(pattern, action);
  }
}
 
开发者ID:vuisis-ammo,项目名称:ammo-core,代码行数:8,代码来源:SimpleConfigurator.java

示例8: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
  rs.addRule(new ElementSelector("configuration/property"), new PropertyAction());
  rs.addRule(new ElementSelector("configuration/timestamp"), new TimestampAction());
  rs.addRule(new ElementSelector("configuration/define"), new DefinePropertyAction());
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:7,代码来源:SiftingJoranConfiguratorBase.java

示例9: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
  rs.addRule(new ElementSelector("fruitShell"), new NOPAction());
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:5,代码来源:FruitConfigurator.java

示例10: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
public void addInstanceRules(RuleStore rs) {
  // parent rules already added
  super.addInstanceRules(rs);

  rs.addRule(new ElementSelector("configuration"), new ConfigurationAction());

  rs.addRule(new ElementSelector("configuration/contextName"),
      new ContextNameAction());
    rs.addRule(new ElementSelector("configuration/contextListener"),
      new LoggerContextListenerAction());
  rs.addRule(new ElementSelector("configuration/insertFromJNDI"),
      new InsertFromJNDIAction());
  rs.addRule(new ElementSelector("configuration/evaluator"), new EvaluatorAction());

  rs.addRule(new ElementSelector("configuration/appender/sift"), new SiftAction());
  rs.addRule(new ElementSelector("configuration/appender/sift/*"), new NOPAction());

  rs.addRule(new ElementSelector("configuration/logger"), new LoggerAction());
  rs.addRule(new ElementSelector("configuration/logger/level"), new LevelAction());

  rs.addRule(new ElementSelector("configuration/root"), new RootLoggerAction());
  rs.addRule(new ElementSelector("configuration/root/level"), new LevelAction());
  rs.addRule(new ElementSelector("configuration/logger/appender-ref"),
      new AppenderRefAction());
  rs.addRule(new ElementSelector("configuration/root/appender-ref"),
      new AppenderRefAction());
  
  // add if-then-else support
  rs.addRule(new ElementSelector("*/if"), new IfAction());
  rs.addRule(new ElementSelector("*/if/then"), new ThenAction());
  rs.addRule(new ElementSelector("*/if/then/*"), new NOPAction());
  rs.addRule(new ElementSelector("*/if/else"), new ElseAction());
  rs.addRule(new ElementSelector("*/if/else/*"), new NOPAction());
  
  // add jmxConfigurator only if we have JMX available.
  // If running under JDK 1.4 (retrotranslateed logback) then we
  // might not have JMX.
  if (PlatformInfo.hasJMXObjectName()) {
    rs.addRule(new ElementSelector("configuration/jmxConfigurator"),
        new JMXConfiguratorAction());
  }
  rs.addRule(new ElementSelector("configuration/include"), new IncludeAction());

  rs.addRule(new ElementSelector("configuration/consolePlugin"),
      new ConsolePluginAction());
  
  rs.addRule(new ElementSelector("configuration/receiver"),
      new ReceiverAction());
  
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:52,代码来源:JoranConfigurator.java

示例11: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
  super.addInstanceRules(rs);
  rs.addRule(new ElementSelector("configuration/appender"), new AppenderAction());
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:6,代码来源:SiftingJoranConfigurator.java

示例12: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
  rs.addRule(new ElementSelector("configuration/appender"), new AppenderAction());
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:5,代码来源:SiftingJoranConfigurator.java

示例13: addInstanceRules

import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {

}
 
开发者ID:irenical,项目名称:jindy,代码行数:5,代码来源:LoggerConfigurator.java


注:本文中的ch.qos.logback.core.joran.spi.RuleStore类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。