ch.qos.logback.core.joran.spi.Interpreter.getRuleStore()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中ch.qos.logback.core.joran.spi.Interpreter.getRuleStore()方法的一些代码示例,展示了Interpreter.getRuleStore()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interpreter.getRuleStore()方法的具体详情如下:
包路径:ch.qos.logback.core.joran.spi.Interpreter
类名称:Interpreter
方法名:getRuleStore

Interpreter.getRuleStore介绍

暂无

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

addInfo("About to add new Joran parsing rule [" + pattern + ","
   + actionClass + "].");
 ec.getJoranInterpreter().getRuleStore().addRule(new ElementSelector(pattern),
   actionClass);
} catch (Exception oops) {

代码示例来源:origin: co.cask.cdap/cdap-watchdog

@Override
protected void buildInterpreter() {
 super.buildInterpreter();
 RuleStore ruleStore = interpreter.getRuleStore();
 ruleStore.addRule(new Pattern("configuration/contextName"), new ContextConfigAction(cConf));
 ruleStore.addRule(new Pattern("configuration/appender"), new WrapAppenderAction<ILoggingEvent>());
}

代码示例来源:origin: caskdata/cdap

@Override
protected void buildInterpreter() {
 super.buildInterpreter();
 RuleStore ruleStore = interpreter.getRuleStore();
 ruleStore.addRule(new Pattern("configuration/contextName"), new ContextConfigAction(cConf));
 ruleStore.addRule(new Pattern("configuration/appender"), new WrapAppenderAction<ILoggingEvent>());
}

代码示例来源:origin: Nextdoor/bender

/**
 * Instantiates an layout of the given class and sets its name.
 */
public void begin(InterpretationContext ec, String localName, Attributes attributes) {
  // Let us forget about previous errors (in this object)
  inError = false;
  String errorMsg;
  String pattern = attributes.getValue(Action.PATTERN_ATTRIBUTE);
  String actionClass = attributes.getValue(Action.ACTION_CLASS_ATTRIBUTE);
  if (OptionHelper.isEmpty(pattern)) {
    inError = true;
    errorMsg = "No 'pattern' attribute in <newRule>";
    addError(errorMsg);
    return;
  }
  if (OptionHelper.isEmpty(actionClass)) {
    inError = true;
    errorMsg = "No 'actionClass' attribute in <newRule>";
    addError(errorMsg);
    return;
  }
  try {
    addInfo("About to add new Joran parsing rule [" + pattern + "," + actionClass + "].");
    ec.getJoranInterpreter().getRuleStore().addRule(new ElementSelector(pattern), actionClass);
  } catch (Exception oops) {
    inError = true;
    errorMsg = "Could not add new Joran parsing rule [" + pattern + "," + actionClass + "]";
    addError(errorMsg);
  }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core

addInfo("About to add new Joran parsing rule [" + pattern + ","
   + actionClass + "].");
 ec.getJoranInterpreter().getRuleStore().addRule(new Pattern(pattern),
   actionClass);
} catch (Exception oops) {

代码示例来源:origin: tony19/logback-android

addInfo("About to add new Joran parsing rule [" + pattern + ","
   + actionClass + "].");
 ec.getJoranInterpreter().getRuleStore().addRule(new ElementSelector(pattern),
   actionClass);
} catch (Exception oops) {

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Instantiates an layout of the given class and sets its name.
 */
public void begin(InterpretationContext ec, String localName, Attributes attributes) {
  // Let us forget about previous errors (in this object)
  inError = false;
  String errorMsg;
  String pattern = attributes.getValue(Action.PATTERN_ATTRIBUTE);
  String actionClass = attributes.getValue(Action.ACTION_CLASS_ATTRIBUTE);
  if (OptionHelper.isEmpty(pattern)) {
    inError = true;
    errorMsg = "No 'pattern' attribute in <newRule>";
    addError(errorMsg);
    return;
  }
  if (OptionHelper.isEmpty(actionClass)) {
    inError = true;
    errorMsg = "No 'actionClass' attribute in <newRule>";
    addError(errorMsg);
    return;
  }
  try {
    addInfo("About to add new Joran parsing rule [" + pattern + "," + actionClass + "].");
    ec.getJoranInterpreter().getRuleStore().addRule(new ElementSelector(pattern), actionClass);
  } catch (Exception oops) {
    inError = true;
    errorMsg = "Could not add new Joran parsing rule [" + pattern + "," + actionClass + "]";
    addError(errorMsg);
  }
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Instantiates an layout of the given class and sets its name.
 */
public void begin(InterpretationContext ec, String localName, Attributes attributes) {
  // Let us forget about previous errors (in this object)
  inError = false;
  String errorMsg;
  String pattern = attributes.getValue(Action.PATTERN_ATTRIBUTE);
  String actionClass = attributes.getValue(Action.ACTION_CLASS_ATTRIBUTE);
  if (OptionHelper.isEmpty(pattern)) {
    inError = true;
    errorMsg = "No 'pattern' attribute in <newRule>";
    addError(errorMsg);
    return;
  }
  if (OptionHelper.isEmpty(actionClass)) {
    inError = true;
    errorMsg = "No 'actionClass' attribute in <newRule>";
    addError(errorMsg);
    return;
  }
  try {
    addInfo("About to add new Joran parsing rule [" + pattern + "," + actionClass + "].");
    ec.getJoranInterpreter().getRuleStore().addRule(new ElementSelector(pattern), actionClass);
  } catch (Exception oops) {
    inError = true;
    errorMsg = "Could not add new Joran parsing rule [" + pattern + "," + actionClass + "]";
    addError(errorMsg);
  }
}

代码示例来源:origin: ch.qos.logback/core

addInfo("About to add new Joran parsing rule [" + pattern + ","
   + actionClass + "].");
 ec.getJoranInterpreter().getRuleStore().addRule(new Pattern(pattern),
   actionClass);
} catch (Exception oops) {

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

addInfo("About to add new Joran parsing rule [" + pattern + ","
   + actionClass + "].");
 ec.getJoranInterpreter().getRuleStore().addRule(new Pattern(pattern),
   actionClass);
} catch (Exception oops) {

代码示例来源:origin: com.hynnet/logback-core

addInfo("About to add new Joran parsing rule [" + pattern + ","
   + actionClass + "].");
 ec.getJoranInterpreter().getRuleStore().addRule(new ElementSelector(pattern),
   actionClass);
} catch (Exception oops) {

相关文章