JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1055372
  • Score
    100M100P100Q199222F
  • 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.

Install

npm install file-stream-rotator

Usage

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

NPM Maintainers

The npm module for this library is maintained by:

License

file-stream-rotator is licensed under the MIT license.