[logback-dev] svn commit: r635 - logback/trunk/logback-core/examples/src/joran/newRule

noreply.ceki at qos.ch noreply.ceki at qos.ch
Sun Oct 8 19:42:15 CEST 2006


Author: ceki
Date: Sun Oct  8 19:42:15 2006
New Revision: 635

Added:
   logback/trunk/logback-core/examples/src/joran/newRule/new-rule.xml

Log:


Added: logback/trunk/logback-core/examples/src/joran/newRule/new-rule.xml
==============================================================================
--- (empty file)
+++ logback/trunk/logback-core/examples/src/joran/newRule/new-rule.xml	Sun Oct  8 19:42:15 2006
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE computation>
+
+<!-- This file is intended to be executed by NewRuleCalculator. 
+	Note that the rules for adding and multiplying are learned on the fly, while parsing
+	this file.
+     -->
+    
+    
+
+<computation name="toto">
+  <new-rule pattern="*/computation/literal" 
+            actionClass="joran.calculator.LiteralAction"/>
+  <new-rule pattern="*/computation/add" 
+            actionClass="joran.calculator.AddAction"/>
+  <new-rule pattern="*/computation/multiply" 
+            actionClass="joran.calculator.MultiplyAction"/>
+
+  <computation>
+    <literal value="7"/>
+    <literal value="3"/>
+    <add/>
+  </computation>   
+ 
+  <literal value="3"/>
+  <multiply/>
+</computation>
\ No newline at end of file



More information about the logback-dev mailing list