commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/src/java/org/apache/commons/jelly XMLOutput.java
Date Thu, 02 Sep 2004 07:17:19 GMT
dion        2004/09/02 00:17:19

  Modified:    jelly/src/java/org/apache/commons/jelly XMLOutput.java
  Log:
  Log exceptions
  
  Revision  Changes    Path
  1.14      +8 -1      jakarta-commons/jelly/src/java/org/apache/commons/jelly/XMLOutput.java
  
  Index: XMLOutput.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/java/org/apache/commons/jelly/XMLOutput.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- XMLOutput.java	24 Feb 2004 14:15:40 -0000	1.13
  +++ XMLOutput.java	2 Sep 2004 07:17:19 -0000	1.14
  @@ -21,6 +21,9 @@
   import java.io.UnsupportedEncodingException;
   import java.io.Writer;
   
  +import org.apache.commons.jelly.parser.XMLParser;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   import org.dom4j.io.XMLWriter;
   
   import org.xml.sax.Attributes;
  @@ -55,6 +58,9 @@
       
       /** The SAX LexicalHandler that output goes to */
       private LexicalHandler lexicalHandler;
  +    
  +    /** The Log to which logging calls will be made. */
  +    private static final Log log = LogFactory.getLog(XMLOutput.class);
   
       public XMLOutput() {
       }
  @@ -117,6 +123,7 @@
               }
               catch (Exception e) {
                   // ignore any unsupported-operation exceptions
  +                if (log.isDebugEnabled()) log.debug("error setting lexical handler properties",
e);
               }
           }
           return output;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message