In my web analytics, I am logging the data in plain text file. I want to rotate the log on a daily basis because its logging too much data. Currently I am using bunyan to rotate the logs.
Problem I am facing
It is rotating the file correctly, but rotated log file are in the name log.0
, log.1
, etc. I want the file name to be log.05-08-2013
, log.04-08-2013
I can't edit the source of the bunyan
package because we are installing the modules using package.json
via NPM.
So my question is - Is there any other log rotation in Node.js that meets my requirement?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…