xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From me...@apache.org
Subject svn commit: r1337172 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java
Date Fri, 11 May 2012 14:13:21 GMT
Author: mehdi
Date: Fri May 11 14:13:21 2012
New Revision: 1337172

URL: http://svn.apache.org/viewvc?rev=1337172&view=rev
Log:
Changed System.err for warnings to logger

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java?rev=1337172&r1=1337171&r2=1337172&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java Fri May
11 14:13:21 2012
@@ -27,6 +27,9 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.NoSuchElementException;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
 import org.apache.xmlgraphics.ps.DSCConstants;
 import org.apache.xmlgraphics.ps.PSGenerator;
 import org.apache.xmlgraphics.ps.dsc.events.DSCAtend;
@@ -44,6 +47,7 @@ import org.apache.xmlgraphics.ps.dsc.too
  * DSCHandler interface.
  */
 public class DSCParser implements DSCParserConstants {
+    private static final Log LOG = LogFactory.getLog(DSCParser.class);
 
     private InputStream in;
     private BufferedReader reader;
@@ -90,11 +94,11 @@ public class DSCParser implements DSCPar
 
     /**
      * This method is used to write out warning messages for the parsing process. Subclass
to
-     * override this method. The default implementation writes to System.err.
+     * override this method. The default implementation writes to logger.
      * @param msg the warning message
      */
     protected void warn(String msg) {
-        System.err.println(msg);
+        LOG.warn(msg);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message