[Swift-commit] r3624 - trunk/src/org/griphyn/vdl/mapping/file

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Sep 14 13:07:37 CDT 2010


Author: wozniak
Date: 2010-09-14 13:07:36 -0500 (Tue, 14 Sep 2010)
New Revision: 3624

Modified:
   trunk/src/org/griphyn/vdl/mapping/file/StructuredRegularExpressionMapper.java
Log:
Add logging


Modified: trunk/src/org/griphyn/vdl/mapping/file/StructuredRegularExpressionMapper.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/file/StructuredRegularExpressionMapper.java	2010-09-14 18:06:54 UTC (rev 3623)
+++ trunk/src/org/griphyn/vdl/mapping/file/StructuredRegularExpressionMapper.java	2010-09-14 18:07:36 UTC (rev 3624)
@@ -8,6 +8,8 @@
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
+import org.apache.log4j.Logger;
+
 import org.griphyn.vdl.mapping.AbsFile;
 import org.griphyn.vdl.mapping.DSHandle;
 import org.griphyn.vdl.mapping.HandleOpenException;
@@ -17,7 +19,11 @@
 import org.griphyn.vdl.mapping.PhysicalFormat;
 
 public class StructuredRegularExpressionMapper extends AbstractFileMapper {
-	public static final MappingParam PARAM_SOURCE = new MappingParam("source");
+
+        public static final Logger logger =
+            Logger.getLogger(StructuredRegularExpressionMapper.class);
+
+        public static final MappingParam PARAM_SOURCE = new MappingParam("source");
 	public static final MappingParam PARAM_MATCH = new MappingParam("match");
 	public static final MappingParam PARAM_TRANSFORM = new MappingParam("transform");
 
@@ -57,6 +63,9 @@
 	}
 
 	public PhysicalFormat map(Path path) {
+
+                logger.debug("map(): path: " + path); 
+
 		String match = PARAM_MATCH.getStringValue(this);
 		String transform = PARAM_TRANSFORM.getStringValue(this);
 




More information about the Swift-commit mailing list