You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by me...@apache.org on 2012/05/11 16:13:21 UTC

svn commit: r1337172 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java

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