Title: Property substitution in DOMConfigurator.

Is there a reason why this is not supported as it is in the PropertyConfigurator?  I browsed through the source and determined that it would be pretty easy to add, but I was wondering if it was purposefully left out.

If my terminology is incorrect or if I am being unclear, I want to do this:

<appender name="A1" class="org.apache.log4j.FileAppender">
    <!-- notice this line -->
    <param name="File"   value="${user.home}\\A1.log" />
    <param name="Append" value="false" />              
    <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%t %-5p %c{2} - %m\n"/>
    </layout>      
</appender>

If I were to patch the existing code to support this, would I be wreaking havoc somewhere or parting from someone else's philosophy?

Thanks for any help.

Steven Velez
Software Engineer
alventive
678-202-2226

Reply via email to