NodeJS Log Rotator
npm install polyfox
- path: Array of Directories where rotation needs to be done
- limit: Limitation of files needs to be present in the directory. Default Limit is 10
- compress Option to provide compression for the log files
// Rotate every day or every 5 megabytes, whatever comes first.
let polyRotateConfig = require('polyfox').rotateLog(
{
path : ["logs", "test"], //Array of Directories
limit : 7, //Optional : Default number is 10
compress: true //Optional : Default Compression is gz
}
);
The npm module for this library will be maintained by:
polyfox is licensed under the Creative Commons Zero v1.0 Universal License.
- Addition of Self Compression without any Dependencies
- More option for compression (compression type)