title: Log4j not writing System.out to the file
body: <p>I have setup log4j with tomcat6 on Windows 2008. The statements are being logged to the log file, but <code>System.out</code> calls are not being logged.</p>
  
  <p>When I run <code>tomcat6.exe</code> from command prompt, the <code>System.out</code> calls are displayed on the prompt, but the same is not logged in the log file.</p>
  
  <p>I have defined a <code>ConsoleAppender</code> and <code>Filelogger</code> as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;
  
    &lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true" threshold="debug"&gt;
        &lt;appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"&gt;
          &lt;layout class="org.apache.log4j.SimpleLayout"&gt;
      &lt;/layout&gt;
        &lt;/appender&gt;
  
        &lt;appender name="CATALINA" class="org.apache.log4j.appender.TimeAndSizeRollingAppender"&gt;
        &lt;param name="File" value="${catalina.home}/logs/catalina.log"/&gt;
                &lt;param name="Threshold" value="DEBUG"/&gt;
        &lt;param name="Append" value="true"/&gt;
        &lt;param name="ImmediateFlush" value="true"/&gt;   
        &lt;param name="DatePattern" value=".yyyy-MM-dd"/&gt;
        &lt;param name="MaxFileSize" value="100MB"/&gt; 
        &lt;param name="MaxRollFileCount" value="100"/&gt;
        &lt;param name="ScavengeInterval" value="30000"/&gt;
        &lt;param name="BufferedIO" value="false"/&gt;
        &lt;param name="CompressionAlgorithm" value="ZIP"/&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d{MMM dd, yyyy HH:mm:ss a} %c%n \r%p: %m%n"/&gt;
      &lt;/layout&gt;
      &lt;/appender&gt;
  
  &lt;logger name="org.apache" additivity="false"&gt;
      &lt;level value="INFO"/&gt;
      &lt;appender-ref ref="CATALINA" /&gt;
  &lt;/logger&gt;
  
      &lt;root&gt;
              &lt;priority value="INFO"/&gt;
      &lt;appender-ref ref="CONSOLE"/&gt;
      &lt;/root&gt;
  </code></pre>
  
  <p></p>