logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <...@qos.ch>
Subject RE: [PATCH] DOMConfigurator.java
Date Tue, 14 Aug 2001 18:50:35 GMT


Patch applied. Thank you for submitting it. It was easy to apply it since it was a unified
diff and supplied as an attachment. Ceki

At 11:17 14.08.2001 -0700, Mark Womack wrote:
>Enclosed is a real cvs patch file, if that is preferred.
>-----Original Message-----
>From: Mark Womack 
>Sent: Tuesday, August 14, 2001 10:56 AM
>To: 'LOG4J Users Mailing List'
>Subject: [PATCH] DOMConfigurator.java
>Enclosed is a modified version of DOMConfigurator.java, based on the current
>CVS version 1.27.  This modified version supports java.io.Reader objects in
>the method doConfigure(), instead of only InputStream.
>org.xml.sax.InputSource supports a constructor which takes a Reader object,
>so the change is very simple:
>- modified the existing doConfigure(InputStream, Hierarchy) method to
>doConfigure(InputSource, Hierarchy) and made it protected instead of public.
>- created a new public version of doConfigure(InputStream,Hierarchy) which
>calls doConfigure(InputSource, Hierarchy).
>- created a new public method, doConfigure(Reader, Hierarchy), which calls
>doConfigure(InputSource, Hierarchy).
>That's it.  I needed this modification because I have a case where the xml
>configuration data is coming from a string, not a file.  So I need to use
>the java.io.StringReader class to wrap the existing string.
>I would appreciate it if someone on the ant-dev mailing list could evaluate
>and submit this change for inclusion in the next version of log4j.
>If you have any questions or concerns, please contact me.
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

Ceki Gülcü - http://qos.ch

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

View raw message