salak-file-stream-rotator
v1.0.2
Published
rotate file for winston
Downloads
4
Readme
salak-file-stream-rotater
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