From: Peter Bernard West Date: Sun, 25 Jan 2004 02:40:11 +0000 (+0000) Subject: Switch to java.util.logging X-Git-Tag: Alt-Design_pre_awt_renderer_import~100 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f95633afa86ad9e987d40cc950e3fc3fa9510b0;p=xmlgraphics-fop.git Switch to java.util.logging git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197254 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/FONode.java b/src/java/org/apache/fop/fo/FONode.java index 8d3775b76..80446c800 100644 --- a/src/java/org/apache/fop/fo/FONode.java +++ b/src/java/org/apache/fop/fo/FONode.java @@ -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."); }