]> source.dussan.org Git - poi.git/commitdiff
Switch to using our own logger, rather than the commons one
authorNick Burch <nick@apache.org>
Mon, 14 Apr 2008 11:47:47 +0000 (11:47 +0000)
committerNick Burch <nick@apache.org>
Mon, 14 Apr 2008 11:47:47 +0000 (11:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@647738 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/changes.xml
src/documentation/content/xdocs/status.xml
src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java

index 1cd4891fd77e4df6a287e64c3c89b2bdde780afd..62e84c646002f2777ebd4062aa26825153f22c83 100644 (file)
@@ -37,6 +37,7 @@
 
                <!-- Don't forget to update status.xml too! -->
         <release version="3.0.3-beta1" date="2008-04-??">
+           <action dev="POI-DEVELOPERS" type="fix">Fix the logger used by POIFSFileSystem, so that commons-logging isn't required when not used</action>
            <action dev="POI-DEVELOPERS" type="add">Update HSLFSlideShow and HSSFWorkbook to take advantage of POIFS updates, and allow reading embeded documents</action>
            <action dev="POI-DEVELOPERS" type="add">Improve how POIFS works with directory entries, and update HWPFDocument to support reading an embeded word document</action>
            <action dev="POI-DEVELOPERS" type="add">Initial support for getting and changing chart and series titles</action>
index 33bfce8cef6241ea9ae678d02ca031289c0fea64..2c30a5552afa1530ae38aa57678f3bfb7855022e 100644 (file)
@@ -34,6 +34,7 @@
        <!-- Don't forget to update changes.xml too! -->
     <changes>
         <release version="3.0.3-beta1" date="2008-04-??">
+           <action dev="POI-DEVELOPERS" type="fix">Fix the logger used by POIFSFileSystem, so that commons-logging isn't required when not used</action>
            <action dev="POI-DEVELOPERS" type="add">Update HSLFSlideShow and HSSFWorkbook to take advantage of POIFS updates, and allow reading embeded documents</action>
            <action dev="POI-DEVELOPERS" type="add">Improve how POIFS works with directory entries, and update HWPFDocument to support reading an embeded word document</action>
            <action dev="POI-DEVELOPERS" type="add">Initial support for getting and changing chart and series titles</action>
index 7c693a5de8663fac31d6f3caab3fe0b5532d1ab2..92348ceaffc22eb7f1770144c6169708ec6054c4 100644 (file)
@@ -31,8 +31,6 @@ import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 import org.apache.poi.poifs.common.POIFSConstants;
 import org.apache.poi.poifs.dev.POIFSViewable;
 import org.apache.poi.poifs.property.DirectoryProperty;
@@ -51,6 +49,8 @@ import org.apache.poi.poifs.storage.SmallBlockTableReader;
 import org.apache.poi.poifs.storage.SmallBlockTableWriter;
 import org.apache.poi.util.IOUtils;
 import org.apache.poi.util.LongField;
+import org.apache.poi.util.POILogFactory;
+import org.apache.poi.util.POILogger;
 
 /**
  * This is the main class of the POIFS system; it manages the entire
@@ -62,7 +62,8 @@ import org.apache.poi.util.LongField;
 public class POIFSFileSystem
     implements POIFSViewable
 {
-    private static final Log _logger = LogFactory.getLog(POIFSFileSystem.class);
+       private static final POILogger _logger =
+               POILogFactory.getLogger(POIFSFileSystem.class);
     
     private static final class CloseIgnoringInputStream extends InputStream {
 
@@ -190,7 +191,7 @@ public class POIFSFileSystem
                     + "This will be a problem for the caller if the stream will still be used.  "
                     + "If that is the case the caller should wrap the input stream to avoid this close logic.  "
                     + "This warning is only temporary and will not be present in future versions of POI.";
-            _logger.warn(msg);
+            _logger.log(POILogger.WARN, msg);
         }
         try {
             stream.close();