NodeJS Logger: winston.transports.DailyRotateFile is not a function
<p>I'm writing a rest api with NodeJS and express and I'm using express-winston to log accesses and erros. But I want to separate de log daily. Like in this <a href="https://stackoverflow.com/questions/31634652/node-js-express-winston-errorlogger-skip-doesnt-work">post</a></p>

<p>I'm trying to do so with winston.transports.DailyRotateFile. A piece of code below.</p>

<pre><code>api.use(expressWinston.logger({
    transports: [
      new winston.transports.DailyRotateFile({
          name: 'file',
          datePattern: '.yyyy-MM-ddTHH',
          filename: path.join(__dirname, "log-access", "log_file.log")
      })
    ]
})); 
</code></pre>

<p>Then I receive the error: winston.transports.DailyRotateFile is not a function</p>

<p>I guess I have to install another pack, since reading winston's doc I found that you can write custom transports.</p>

<p>Would you have information on which package I would have to install? I found some that doesn't match or was discontinued.</p>

<p>Thanks for any help</p>