title: How to insert a date inside the filename with logrotate
body: <p>I need to set logrotate to rotate logs files from an application running on the server.
  I need the date inside the filename.</p>
  
  <p>I set dateext and also dateformat to add a - in the date.
  The result filename is:whatever.csv_2012-03-03</p>
  
  <p>I would like the timestamp to be part of the filename keeping safe the extension; Whatever_2012-03-03.csv.</p>