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

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -