In my web analytics, I am logging the data in plan text file. I want to rotate the log on daily basis because its logging too much data. Currently i am using bunyan to rotate the logs.
Problem facing
log.0
log.1
log.05-08-2013
log.04-08-2013
package.json
Winston does support log rotation using a date in the file name. Take a look at this pull request which adds the feature and was merged four months ago. Unfortunately the documentation isn't listed on the site, but there is another pull request pending to fix that. Based on that documentation, and the tests for the log rotation features, you should be able to just add it as a new Transport to enable the log rotation functionality. Something like the following:
winston.add(winston.transports.DailyRotateFile, {
filename: './logs/my.log',
datePattern: '.dd-MM-yyyy'
});