return getExecutionContext().getErrorList();
}
protected void selfInitialize(LoggerRepository repository) {
RuleStore rs = new SimpleRuleStore(repository);
rs.addRule(new Pattern("configuration"), new ConfigurationAction());
rs.addRule(
new Pattern("configuration/substitutionProperty"),
new SubstitutionPropertyAction());
rs.addRule(
new Pattern("configuration/repositoryProperty"),
new RepositoryPropertyAction());
rs.addRule(
new Pattern("configuration/conversionRule"),
new ConversionRuleAction());
rs.addRule(new Pattern("configuration/plugin"), new PluginAction());
rs.addRule(new Pattern("configuration/logger"), new LoggerAction());
rs.addRule(
new Pattern("configuration/logger/level"), new LevelAction());
rs.addRule(
new Pattern("configuration/logger/priority"), new PriorityAction());
rs.addRule(
new Pattern("configuration/root"), new RootLoggerAction());
rs.addRule(
new Pattern("configuration/root/level"), new LevelAction());
rs.addRule(
new Pattern("configuration/root/priority"), new PriorityAction());
rs.addRule(
new Pattern("configuration/logger/appender-ref"),
new AppenderRefAction());
rs.addRule(
new Pattern("configuration/root/appender-ref"),
new AppenderRefAction());
rs.addRule(
new Pattern("configuration/appender"), new AppenderAction());
rs.addRule(new Pattern("configuration/appender/appender-ref"),
new AppenderRefAction());
rs.addRule(
new Pattern("configuration/appender/layout"), new LayoutAction());
rs.addRule(
new Pattern("configuration/jndiSubstitutionProperty"),
new JndiSubstitutionPropertyAction());
rs.addRule(
new Pattern("configuration/newRule"), new NewRuleAction());
rs.addRule(new Pattern("*/param"), new ParamAction());
joranInterpreter = new Interpreter(rs);
joranInterpreter.setLoggerRepository(repository);
// The following line adds the capability to parse nested components