From: Peter Bernard West Date: Mon, 8 Mar 2004 12:42:22 +0000 (+0000) Subject: Change the way Logger is accessed X-Git-Tag: Alt-Design_pre_awt_renderer_import~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=761d266e2033ba149cb9dc41f7ec78c9dfe3f820;p=xmlgraphics-fop.git Change the way Logger is accessed git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197424 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/pagination/FoLayoutMasterSet.java b/src/java/org/apache/fop/fo/pagination/FoLayoutMasterSet.java index 776591c54..2ee649c26 100644 --- a/src/java/org/apache/fop/fo/pagination/FoLayoutMasterSet.java +++ b/src/java/org/apache/fop/fo/pagination/FoLayoutMasterSet.java @@ -26,7 +26,6 @@ import java.util.Map; import java.util.NoSuchElementException; import org.apache.fop.apps.FOPException; -import org.apache.fop.apps.Fop; import org.apache.fop.datastructs.TreeException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FOTree; @@ -256,7 +255,7 @@ public class FoLayoutMasterSet extends FONode { public long makePageId() { if (++pageId == 0) { ++pageId; // 0 is invalid - Fop.logger.warning("Page ID rollover."); + log.warning("Page ID rollover."); } return pageId; } diff --git a/src/java/org/apache/fop/xml/FoXmlSerialHandler.java b/src/java/org/apache/fop/xml/FoXmlSerialHandler.java index 33fa6b916..ae5a6370e 100644 --- a/src/java/org/apache/fop/xml/FoXmlSerialHandler.java +++ b/src/java/org/apache/fop/xml/FoXmlSerialHandler.java @@ -21,6 +21,7 @@ package org.apache.fop.xml; import java.util.NoSuchElementException; import java.util.logging.Level; +import java.util.logging.Logger; import org.xml.sax.Attributes; import org.xml.sax.InputSource; @@ -53,6 +54,7 @@ implements Runnable { private Namespaces namespaces; private InputSource source; private Thread foThread; + protected Logger log = Logger.getLogger(Fop.fopPackage); private boolean errorDump; /** @@ -68,7 +70,7 @@ implements Runnable { this.source = source; namespaces = events.getNamespaces(); parser.setContentHandler(this); - Level level = Fop.logger.getLevel(); + Level level = log.getLevel(); if (level.intValue() <= Level.FINE.intValue()) { errorDump = true; }