title: How to daily rotate logs, with data from the current day only?
body: <p>I rotate my nginx access log files with logrotate an have the following config:</p>
  
  <pre><code>/var/www/logs/*.log {
      daily
      missingok
      dateext
      dateformat _%Y-%m-%d
      dateyesterday
      rotate 90
      compress
      delaycompress
      compressext
      notifempty
      create 0640 www-data www-data
      sharedscripts
      postrotate
             [ -f /var/run/nginx.pid ] &amp;&amp; kill -USR1 `cat /var/run/nginx.pid`
      endscript
  </code></pre>
  
  <p>}</p>
  
  <p>When cron runs that script for example at 5am all logs between 0am and 5am in the file will be rotated.
  I want a log file for exactly one day from midnight to 11.59pm </p>
  
  <p>Is there an opportunity to configure this?</p>