How to use the rotating-file-stream.createStream function in rotating-file-stream

To help you get started, we’ve selected a few rotating-file-stream examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github felixbrucker / foxy-proxy / lib / services / logger.js View on Github external
enableFileLogging() {
    if (this.logWriter) {
      return;
    }

    this.logWriter = rfs.createStream(Logger.logFileGenerator, {
      size: '10M',
      interval: '1d',
      path: store.getLogDir(),
    });
  }

rotating-file-stream

Opens a stream.Writable to a file rotated by interval and/or size. A logrotate alternative.

MIT
Latest version published 24 days ago

Package Health Score

79 / 100
Full package analysis

Popular rotating-file-stream functions