Winston: how to rotate logs

前端 未结 5 1478
傲寒
傲寒 2020-12-08 04:13

How can I rotate logs when using Winston to handle logging for node.js. That is, how can I create a new file for each day the app runs?

    var logger = new          


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 04:56

    As of Dec 18, 2012, this feature is now available in Winston (see https://github.com/flatiron/winston/pull/205)

提交回复
热议问题