node.js - How set node js morgan logger max file size -
i'm using node.js morgan logger this:
// create rotating write stream var accesslogstream = require("stream-file-archive")({ path: "logs/app-%y-%m-%d.log", // write logs rotated day symlink: "logs/current.log", // maintain symlink called current.log compress: true // gzip old log files }); app.use(logger('combined', {stream: accesslogstream}));
and wanted know how limit max file size of access.log.
thanks
Comments
Post a Comment