log-rotate
Rotate a log similar to the way linux logrotate does, appending and updating
.NUM
indexes as you go.
Example
var rotate = ;// move a log file while incrementing existing indexed / rotated logs;
options
count
Limit the number of rotated files to count
var rotate = ;;
compress
Compress rotated files with gzip
install
With npm do:
npm install log-rotate