title: How to set value in log4j.xml using property file?
body: <p>I would like to know if there is possibility to set an attribute in log4j.xml by using property file. For example the log4j.xml: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
  &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;
  &lt;log4j:configuration&gt;
   &lt;appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;param name="target" value="System.out" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] - %l - %m%n "/&gt;
      &lt;/layout&gt;        
  &lt;/appender&gt;
     &lt;appender name="FILE" class="org.apache.log4j.FileAppender"&gt;
  &lt;param name="File" value="\D:\ReadText_File\log4jlogss.txt"/&gt;
  &lt;param name="Append" value="true"/&gt;
           &lt;layout class="org.apache.log4j.PatternLayout"&gt;
                      &lt;param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}]- %l - %m%n"/&gt;
          &lt;/layout&gt;
  &lt;/appender&gt;
  &lt;logger name="org.apache"&gt;
  &lt;level value="WARN"/&gt;
  &lt;/logger&gt;
  &lt;root&gt;
      &lt;level value="DEBUG"/&gt;
      &lt;appender-ref ref="FILE"/&gt;
      &lt;appender-ref ref="CONSOLE"/&gt;
      &lt;/root&gt;
     &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>I wan to specify the path for the file using Properties file 
  Any idea how can we do it ????</p>