title: How can I get log4j to use a log4j.xml file and not write to console when using Spring?
body: <p>I'm helping a friend with a project.  He uses Spring; I am not.  I gave him a <code>log4j.xml</code> file I use to enable logging to a file in a <code>logs/</code> subdirectory.  He tried the <code>log4j.xml</code> but his app is ignoring it (doesn't react to its presence or absence), sending output to the console.  It appears Spring is auto-configuring <code>log4j</code> to do this.  We also tried <code>-Ddebug.log4j=true</code> to find discern more about <code>log4j</code>'s initialization when Spring is involved, but that parameter had no effect.</p>