]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Made log instance variable
authorPeter Bernard West <pbwest@apache.org>
Mon, 8 Mar 2004 20:46:29 +0000 (20:46 +0000)
committerPeter Bernard West <pbwest@apache.org>
Mon, 8 Mar 2004 20:46:29 +0000 (20:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197425 13f79535-47bb-0310-9956-ffa450edef68

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

index 8ab1d21bcd7862407aa3378db600968d71deea4c..41f0e10a1fd3754e473d9d6e67e6cd13882ffe09 100644 (file)
@@ -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.");
             }
index a0a7b25d4fa43356aa750c33c96fadbf9a7f7bf3..2239ec6be98140120d8dc848416519658548386e 100644 (file)
@@ -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 <tt>XmlEvent</tt>s 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;
         }