title: Winston logger different file for different date
body: <p>Does winston provide a way to write logs to different file when the date is changed?</p>
  
  <p><strong>e.g.</strong> errorLogs_10_04_2016.log, errorLogs_11_04_2016.log, errorLogs_12_04_2016.log</p>
  
  <p>I need to export these logs, provide admin a way to export logs to a specific date.</p>
  
  <p><strong>Update:</strong>
  As suggested by <strong>krakig</strong>, I tried using <code>DailyRotateFile</code> transport.</p>
  
  <pre><code>var winston = require('winston');
  
  var logger = new (winston.Logger)({
      transports: [
          new (winston.transports.DailyRotateFile)({
  
              filename: 'logs.log',
              datePattern:'_dd-MM-yyyy'
  
          })
      ]
  });
  </code></pre>
  
  <p>But I'm getting <code>winston.transports.DailyRotateFile is not a function</code> error.</p>
  
  <p>My winston version is 2.2.0</p>