salak-file-stream-rotator

1.0.2 • Public • Published

salak-file-stream-rotater

NPM version David deps NPM download

Stream file rotator for SalakJS logs.

Install

$ npm install --save salak-file-stream-rotator

Usage

const streamRotator = require('salak-file-stream-rotator')

streamRotator.write('hi, salak!')

Options

  • filename: absolute path
  • date_format: defaults: YYYY-MM-DD
  • size: max bytes which the file can store
  • max_logs: how many files which can be keeped
  • audit_file: which stored the files info, defaults: dir(filename) + '/.audit.json'

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i salak-file-stream-rotator

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

11.3 kB

Total Files

9

Last publish

Collaborators

  • wengeek