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