1.1.0 • Published 10 years ago

log-rotation-stream v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago