From: Peter Bernard West Date: Mon, 8 Mar 2004 20:46:29 +0000 (+0000) Subject: Made log instance variable X-Git-Tag: Alt-Design_pre_awt_renderer_import~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=22f7428e21dbd0e36ed7badb0e11f02e8a9702c2;p=xmlgraphics-fop.git Made log instance variable git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197425 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 8ab1d21bc..41f0e10a1 100644 --- a/src/java/org/apache/fop/fo/FONode.java +++ b/src/java/org/apache/fop/fo/FONode.java @@ -53,7 +53,7 @@ public class FONode extends SyncedNode{ private static final String tag = "$Name: $"; private static final String revision = "$Revision: 1.19.2.33 $"; - protected static final Logger logger = Logger.getLogger(Fop.fopPackage); + protected Logger log = Logger.getLogger(Fop.fopPackage); /** * State flags: a bit set of states applicable during FO tree build. * N.B. States must be powers of 2. @@ -240,7 +240,7 @@ public class FONode extends SyncedNode{ int property; int prop = foKeys[propx].intValue(); if ( ! attrBitSet.get(prop)) { - logger.info("Ignoring " + log.info("Ignoring " + PropNames.getPropertyName(prop) + " on " + FObjectNames.getFOName(type) @@ -271,12 +271,12 @@ public class FONode extends SyncedNode{ } } } catch (FunctionNotImplementedException e) { - logger.info + log.info ("Function not implemented: " + e.getMessage() + ". Ignoring property '" + PropNames.getPropertyName(prop) + "'."); } catch (PropertyException e) { - logger.info + log.info ("Problem with '" + PropNames.getPropertyName(prop) + "':\n" + e.getMessage() + "\nIgnoring property."); } diff --git a/src/java/org/apache/fop/fo/FOTree.java b/src/java/org/apache/fop/fo/FOTree.java index a0a7b25d4..2239ec6be 100644 --- a/src/java/org/apache/fop/fo/FOTree.java +++ b/src/java/org/apache/fop/fo/FOTree.java @@ -19,6 +19,7 @@ package org.apache.fop.fo; import java.util.logging.Level; +import java.util.logging.Logger; import org.apache.fop.apps.Fop; import org.apache.fop.datastructs.Tree; @@ -56,6 +57,7 @@ public class FOTree extends Tree implements Runnable { */ protected PropertyParser exprParser; + protected Logger log = Logger.getLogger(Fop.fopPackage); /** * @param xmlevents the buffer from which XmlEvents from the * parser are read. @@ -64,7 +66,7 @@ public class FOTree extends Tree implements Runnable { throws PropertyException { super(); - Level level = Fop.logger.getLevel(); + Level level = log.getLevel(); if (level.intValue() <= Level.FINE.intValue()) { errorDump = true; }