openamf/src/java/org/openamf/util XMLUtils.java,1.6,1.7

Jason Calabrese <[email protected]> Tue, 16 Mar 2004 04:33:42 +0000
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25747/src/java/org/openamf/util

Modified Files:
	XMLUtils.java 
Log Message:
added more logging

Index: XMLUtils.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/util/XMLUtils.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** XMLUtils.java	16 Aug 2003 13:11:16 -0000	1.6
--- XMLUtils.java	16 Mar 2004 04:33:39 -0000	1.7
***************
*** 13,16 ****
--- 13,18 ----
  import javax.xml.parsers.DocumentBuilderFactory;
  
+ import org.apache.commons.logging.Log;
+ import org.apache.commons.logging.LogFactory;
  import org.w3c.dom.Document;
  import org.w3c.dom.Element;
***************
*** 21,25 ****
  
  /**
!  * @author Jason Calabrese <[email protected]>
   * @see OpenAMFUtils
    * @version $Revision$, $Date$
--- 23,27 ----
  
  /**
!  * @author Jason Calabrese <[email protected]>
   * @see OpenAMFUtils
    * @version $Revision$, $Date$
***************
*** 27,30 ****
--- 29,34 ----
  public final class XMLUtils {
  
+     protected static Log log = LogFactory.getLog(XMLUtils.class);
+     
  	private XMLUtils() {
  		// this constructor is intentionally private
***************
*** 97,100 ****
--- 101,105 ----
  			document = builder.parse(new InputSource(is));
  		} catch (Exception e) {
+             log.error(e, e);
  			throw new IOException("Error while parsing xml: " + e.getMessage());
  		}



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click