title: Create log file with date using log4j
body: <p>I'm writing my log file using below code but it stores file as <code>QueryLog.log</code>. Am i missing something? Check my code of <code>log4j.properties</code> file</p>
  
  <pre><code>log4j.logger.org.hibernate=INFO
  log4j.logger.org.hibernate.SQL=DEBUG
  log4j.logger.org.hibernate.type=TRACE
  log4j.logger.org.hibernate.hql.ast.AST=info
  log4j.logger.org.hibernate.tool.hbm2ddl=warn
  log4j.logger.org.hibernate.hql=debug
  log4j.logger.org.hibernate.cache=info
  log4j.logger.org.hibernate.jdbc=debug
  log4j.rootLogger = DEBUG, FILE
  log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.FILE.DatePattern='.'yyyy-MM-dd-a
  log4j.appender.FILE.File=log4j/QueryLog.log
  log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
  log4j.appender.FILE.layout.conversionPattern= %d{HH:mm:ss} %-5p %c - %m%n
  </code></pre>
  
  <p>Links i used:</p>
  
  <p><a href="http://www.tutorialspoint.com/log4j/log4j_logging_files.htm">http://www.tutorialspoint.com/log4j/log4j_logging_files.htm</a></p>
  
  <p><a href="http://www.codejava.net/coding/configure-log4j-for-creating-daily-rolling-log-files">http://www.codejava.net/coding/configure-log4j-for-creating-daily-rolling-log-files</a></p>