TypeError: rfs is not a function
tharindulucky opened this issue · comments
When using rfs
like this, it throws an error.
log file rotation
var accessLogStream = rfs('access.log', {
interval: '1d', // rotate daily
path: logDirectory
})
Instead, use it like this
const accessLogStream = rfs.createStream('access.log', {
interval: '1d', // rotate daily
path: logDirectory
});
Thanks @tharindulucky that just fixed it for me too
added the docs
label as there's a PR open to update the README to account for the api change in rfs