title: Log4j file not being created in spring
body: <p>This is my log4j.xml file. The file isn't being created and i don't know why, but I can see the log messages on the console.</p>
  
  <p>Is there anything missing?
  Is there something I should remove?</p>
  
  <p>Thanks for taking a look and have a nice day.</p>
  
  <p>
  </p>
  
  <p></p>
  
  <pre><code>&lt;!-- Appenders --&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="%-5p: %c - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  
  &lt;appender name="file" class="org.apache.log4j.RollingFileAppender"&gt;
      &lt;param name="append" value="true" /&gt;
      &lt;param name="maxFileSize" value="10MB" /&gt;
      &lt;param name="maxBackupIndex" value="10" /&gt;
      &lt;param name="file" value="${catalina.home}/logs/paquitoelchocolatero.log" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
      &lt;param name="ConversionPattern" 
          value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  
  &lt;!-- Application logger --&gt;
  &lt;logger name="springapp"&gt;
      &lt;level value="info" /&gt;
  &lt;/logger&gt;
  &lt;!-- 3rdparty Loggers --&gt;
  &lt;logger name="org.springframework.beans"&gt;
      &lt;level value="warn" /&gt;
  &lt;/logger&gt;
  
  &lt;logger name="org.springframework.jdbc"&gt;
      &lt;level value="warn" /&gt;
  &lt;/logger&gt;
  
  &lt;logger name="org.springframework.transaction"&gt;
      &lt;level value="warn" /&gt;
  &lt;/logger&gt;
  
  &lt;logger name="org.springframework.orm"&gt;
      &lt;level value="warn" /&gt;
  &lt;/logger&gt;
  
  &lt;logger name="org.springframework.web"&gt;
      &lt;level value="warn" /&gt;
  &lt;/logger&gt;
  
  &lt;logger name="org.springframework.webflow"&gt;
      &lt;level value="warn" /&gt;
  &lt;/logger&gt;
  
  &lt;!-- Root Logger --&gt;
  &lt;root&gt;
      &lt;priority value="debug" /&gt;
      &lt;appender-ref ref="console" /&gt;
      &lt;appender-ref ref="file" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p> </p>