title: How can I override the log4j properties file in my jar at runtime
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4598702/dynamically-changing-log4j-log-level">Dynamically Changing log4j log level</a>  </p>
  </blockquote>
  
  
  
  <p>I have a <strong>jar</strong> file with a <strong>log4j</strong> properties file included. I tried to use </p>
  
  <p><code>-Dlog4j.configuration=file:[filename]</code> </p>
  
  <p>to change the properties file at <em>runtime</em> using
  <em>java</em>, and it didn't work. I need to do this in a <em>sh</em> file 
  Can anyone please tell me how to this? I also tried adding </p>
  
  <pre><code>-Dlog4j.defaultInitOverride=true
  </code></pre>