Stream file rotator for SalakJS logs.
$ npm install --save salak-file-stream-rotator
const streamRotator = require('salak-file-stream-rotator')
streamRotator.write('hi, salak!')
- 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'
MIT