title: How to configure Logrotate with dateext and extension
body: <p>I tried to configure logrotate to keep the date and the extension of the log being rotated:</p>
  
  <p>With the current configuration, the file:</p>
  
  <blockquote>
    <p>/var/www/redmine/log/production.log</p>
  </blockquote>
  
  <p>Is logrotated in :</p>
  
  <blockquote>
    <p>/var/www/redmine/log/production.-20160710log</p>
  </blockquote>
  
  <p>I was expecting :</p>
  
  <blockquote>
    <p>/var/www/redmine/log/production-20160710.log</p>
  </blockquote>
  
  <p>Please see below an extract vof the logrotate configuration file :</p>
  
  <p><strong>cat /etc/logrotate.d/redmine</strong></p>
  
  <pre><code>    rotate 4
      weekly
      missingok
      notifempty
      compress
      delaycompress
      sharedscripts
      dateext
  
      /var/www/redmine/log/production.log
      {
              create 755 www-data www-data
              extension log
      }
  </code></pre>