title: add timestamp in the log file on daily basis
body: <p>I want to add the timestamp at the end of my log file on the daily basis.
  Means for every day the log file should look like 
  test.2013-01-10.log</p>
  
  <p>My new log.properties file is below.Please help</p>
  
  <pre><code>log4j.rootLogger=info,myapp
  log4j.appender.myapp=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.myapp.ImmediateFlush=true
  log4j.appender.myapp.DatePattern='.'yyyy-MM-dd-HH
  log4j.appender.myapp.layout.ConversionPattern=%d{yyyy-MM-dd}%m%n
  log4j.appender.myapp.file=${catalina.base}/logs/myapplog/test
  log4j.appender.myapp.DatePattern='_'yyyy-MM-dd
  #log4j.appender.myapp.MaxFileSize=999MB
  #log4j.appender.myapp.MaxBackupIndex=20
  log4j.appender.myapp.layout=org.apache.log4j.PatternLayout
  log4j.appender.consoleAppender = org.apache.log4j.ConsoleAppender
  log4j.appender.consoleAppender.layout = org.apache.log4j.PatternLayout
  log4j.appender.consoleAppender.layout.ConversionPattern=%m%n
  log4j.logger=info,stdout,myapp
  log4j.logger.org.hibernate=warn
  </code></pre>