[logback-dev] svn commit: r671 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Fri Oct 13 17:17:11 CEST 2006
Author: ceki
Date: Fri Oct 13 17:17:11 2006
New Revision: 671
Modified:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi/Interpreter.java
Log:
ongoing work on replaying Joran
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi/Interpreter.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi/Interpreter.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi/Interpreter.java Fri Oct 13 17:17:11 2006
@@ -66,6 +66,9 @@
Pattern pattern;
Locator locator;
+ public List<SaxEvent> saxEventList = new ArrayList<SaxEvent>();
+
+
/**
* The <id>actionListStack</id> contains a list of actions that are executing
* for the given XML element.
@@ -100,7 +103,8 @@
public void startElement(String namespaceURI, String localName, String qName,
Attributes atts) {
- String tagName = getTagName(localName, qName);
+
+ String tagName = getTagName(localName, qName);
//System.out.println("startElement [" + tagName + "]");
@@ -121,9 +125,10 @@
}
public void characters(char[] ch, int start, int length) {
+
+ String body = new String(ch, start, length);
List applicableActionList = (List) actionListStack.peek();
- String body = new String(ch, start, length);
if(body != null) {
body = body.trim();
}
@@ -134,6 +139,8 @@
}
public void endElement(String namespaceURI, String localName, String qName) {
+ saxEventList.add(new EndEvent(namespaceURI, localName, qName, getLocator()));
+
List applicableActionList = (List) actionListStack.pop();
// System.out.println("endElement ["+getTagName(localName, qName)+"]");
More information about the logback-dev
mailing list