log-rotation-stream

1.1.0 • Public • Published

log-rotation-stream

a writable stream that you can always append to.

var LogRotationStream = require('log-rotation-stream')

                                    // default $maxlogsize - 1gb
var stream = LogRotationStream($logdir, $maxlogsize)

BIGDATA.pipe(stream)

When the log file size gets to the max size it's moved into a $logdir/$year/$month/$day/$ISOtimestamp.log. This makes it easy to find the files containing any date range.

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.00
1.0.10
1.0.00
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i log-rotation-stream

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • nopersonsmodules