title: DailyRollingFileAppender not creating daily log file
body: <p>DailyRollingFileAppender is not creating daily backup log file. </p>
  
  <p>I am using the below config, which works on my local machine but it not working on the machine where my project has been deployed.</p>
  
  <pre><code>log4j.rootLogger=DEBUG, Appender2
  
  log4j.appender.Appender2=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.Appender2.File=C:/Logs/AppLog.log
  log4j.appender.Appender2.DatePattern='.'dd-MM-yyyy
  log4j.appender.Appender2.layout=org.apache.log4j.PatternLayout
  log4j.appender.Appender2.layout.ConversionPattern=%-7p %d [%t] %c %x - %m%n
  log4j.appender.Appender2.rootLogger = DEBUG
  </code></pre>
  
  <p>Framework - Spring MVC</p>
  
  <p>I am not able to understand which part of the config is bloking DailyRollingFileAppender  to create date wise log on my server machine.</p>
  
  <p><strong>Edit-</strong></p>
  
  <p>I updated my file as per the suggestion and it is not creating a new backup file at 12 am next day. means it updated AppLog.l‌​og till 12 then there was no backup file and all the previous day logs are gone and it starts writing from the beginning.</p>
  
  <p>This is log4j properties now-</p>
  
  <pre><code>log4j.rootLogger=DEBUG, Appender2
  log4j.appender.Appender2=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.Appender2.File=${catalina.home}/Logs/AppLog.log
  log4j.appender.Appender2.DatePattern='.'yyyy-MM-dd
  log4j.appender.Appender2.layout=org.apache.log4j.PatternLayout
  log4j.appender.Appender2.Append=false
  log4j.appender.Appender2.layout.ConversionPattern=%-7p %d [%t] %c %x - %m%n
  </code></pre>