You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2007/11/13 13:45:16 UTC

svn commit: r594517 - /xmlgraphics/fop/trunk/test/java/org/apache/fop/logging/LoggingElementListObserver.java

Author: jeremias
Date: Tue Nov 13 04:45:15 2007
New Revision: 594517

URL: http://svn.apache.org/viewvc?rev=594517&view=rev
Log:
Log element list length for convenience.

Modified:
    xmlgraphics/fop/trunk/test/java/org/apache/fop/logging/LoggingElementListObserver.java

Modified: xmlgraphics/fop/trunk/test/java/org/apache/fop/logging/LoggingElementListObserver.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/test/java/org/apache/fop/logging/LoggingElementListObserver.java?rev=594517&r1=594516&r2=594517&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/java/org/apache/fop/logging/LoggingElementListObserver.java (original)
+++ xmlgraphics/fop/trunk/test/java/org/apache/fop/logging/LoggingElementListObserver.java Tue Nov 13 04:45:15 2007
@@ -24,6 +24,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.fop.layoutmgr.ElementListUtils;
 import org.apache.fop.layoutmgr.ListElement;
 import org.apache.fop.layoutmgr.ElementListObserver.Observer;
 
@@ -44,7 +45,8 @@
             return;
         }
         log.debug(" ");
-        log.debug("ElementList: category=" + category + ", id=" + id);
+        int len = (elementList != null ? ElementListUtils.calcContentLength(elementList) : 0);
+        log.debug("ElementList: category=" + category + ", id=" + id + ", len=" + len + "mpt");
         if (elementList == null) {
             log.debug("<<empty list>>");
             return;



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org