本文整理汇总了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());
}
示例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());
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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());
}
示例9: addInstanceRules
import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
rs.addRule(new ElementSelector("fruitShell"), new NOPAction());
}
示例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());
}
示例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());
}
示例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());
}
示例13: addInstanceRules
import ch.qos.logback.core.joran.spi.RuleStore; //导入依赖的package包/类
@Override
protected void addInstanceRules(RuleStore rs) {
}