1.0.2 • Published 6 years ago

salak-file-stream-rotator v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago