School project
Node.JS Gulp module: Advanced Logger
- backup weekly
- keep record of last four weeks
Syntax
logger(file, weeks, pattern);
file
Carpo-Logger custom log file
default: custom.log
weeks
Log roration (Weekly)
default: 4
pattern
Use crontab format.
default: 0 0 * * * 1
var gulp = require('gulp');
var logger = require('gulp-carpo-logger');
gulp.task('default', function()
{
logger();
});