JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1057150
  • Score
    100M100P100Q203495F
  • License MIT

Automated stream rotation

Package Exports

  • file-stream-rotator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (file-stream-rotator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

file-stream-rotator

NodeJS file stream rotator

Purpose

To provide an automated rotation of Express/Connect logs based on date.

Usage

var rotatingLogStream = require('FileStreamRotator').getStream({filename:"/tmp/test.log", frequency:"daily"})
.....
// Use new stream in express
app.use(express.logger({stream: rotatingLogStream, format: "default"}));

TODO

  • submit module to NPM