]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Switch to java.util.logging
authorPeter Bernard West <pbwest@apache.org>
Sun, 25 Jan 2004 02:40:11 +0000 (02:40 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sun, 25 Jan 2004 02:40:11 +0000 (02:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197254 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FONode.java

index 8d3775b761661a7673d619182739c91bea1c2dc3..80446c8009ec69993ef326a3b2531500735a7c4e 100644 (file)
@@ -58,6 +58,7 @@ package org.apache.fop.fo;
 import java.util.BitSet;
 import java.util.HashMap;
 import java.util.Iterator;
+import java.util.logging.Logger;
 
 import org.apache.fop.apps.FOPException;
 import org.apache.fop.datastructs.Node;
@@ -73,7 +74,6 @@ import org.apache.fop.fo.expr.PropertyException;
 import org.apache.fop.fo.expr.PropertyParser;
 import org.apache.fop.fo.flow.FoMarker;
 import org.apache.fop.fo.properties.Property;
-import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.xml.FoXmlEvent;
 import org.apache.fop.xml.XmlEvent;
 import org.apache.fop.xml.Namespaces;
@@ -88,6 +88,7 @@ public class FONode extends Node{
     private static final String tag = "$Name:  $";
     private static final String revision = "$Revision: 1.19.2.33 $";
 
+    protected static final Logger logger = Logger.getLogger("org.apache.fop");
     /**
      * State flags: a bit set of states applicable during FO tree build.
      * N.B. States must be powers of 2.
@@ -270,7 +271,7 @@ public class FONode extends Node{
             int property;
             int prop = foKeys[propx].intValue();
             if ( ! attrBitSet.get(prop)) {
-                MessageHandler.logln("Ignoring "
+                logger.info("Ignoring "
                                    + PropNames.getPropertyName(prop)
                                    + " on "
                                    + FObjectNames.getFOName(type)
@@ -301,12 +302,12 @@ public class FONode extends Node{
                     }
                 }
             } catch (FunctionNotImplementedException e) {
-                MessageHandler.logln
+                logger.info
                         ("Function not implemented: " + e.getMessage()
                          + ". Ignoring property '"
                          + PropNames.getPropertyName(prop) + "'.");
             } catch (PropertyException e) {
-                MessageHandler.logln
+                logger.info
                         ("Problem with '" + PropNames.getPropertyName(prop)
                          + "':\n" + e.getMessage() + "\nIgnoring property.");
             }