winston log split by date的解决方案

winston 是node.js的日志管理工具,但是它的api是按照文件大小来切割文件,而不是按照日期来切割的。如何做到按日期存储日志呢?
参考资料
http://stackoverflow.com/questions/11403953/winston-how-to-rotate-logs

https://github.com/winstonjs/winston/issues/10

https://github.com/winstonjs/winston/pull/120/files

https://github.com/winstonjs/winston/pull/205

猜你喜欢

转载自lhdst-163-com.iteye.com/blog/2259058