title: Override log4j.properties
body: <p>My java application references a 3rd-party jar file which uses log4j logging. The problem is that this jar contains its own log4j.properties file which causes access denied exceptions on my machine, but I don't have control over the jar file to change its contents.</p>
  
  <p>I have tried adding my own log4j.properties file in my application's classpath, but it doesn't seem to have an effect. If I try to use PropertyConfigurator to import my own settings programmatically, log4j seems to load the jar file's properties file first (causing an exception).</p>
  
  <p>How can I short-circuit log4j to ignore a 3rd-party jar file's log4j.properties file and use my own?</p>