chmac / cohesion-catalyst

Repository for the Cohesion Catalyst project that aims to visualize multicollectivity with the help of Meteor and D3.
https://zollillo.github.io/cohesion-catalyst/
0 stars 0 forks source link

Question: Does logfile grow infinitely? #8

Closed chmac closed 5 years ago

chmac commented 5 years ago

@hschirmacher I spotted this:

  logger.add(Meteor.npmRequire('winston-daily-rotate-file'), {
    level: "info",
    filename: logDirectory + "/info.log",
    maxsize: 1024 * 1024 * 10, // 10MB
    datePattern: ".yyyy-MM",
    json: false,
    formatter: function(options) {
      // We use the 'formatter' option to return our customized string
      // which will be passed to logger.
      return  (undefined !== options.message ? options.message : "");
    }
  });

Which I guess means the log file never grows beyond 10MB and is probably rotated (deleted and recreated) daily...