Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: rfs is not a function #217

Closed
tharindulucky opened this issue Dec 22, 2019 · 2 comments
Closed

TypeError: rfs is not a function #217

tharindulucky opened this issue Dec 22, 2019 · 2 comments
Labels

Comments

@tharindulucky
Copy link

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
});
@a10kiloham
Copy link

Thanks @tharindulucky that just fixed it for me too

@ryhinchey ryhinchey added the docs label Feb 28, 2020
@ryhinchey
Copy link
Contributor

added the docs label as there's a PR open to update the README to account for the api change in rfs

dougwilson pushed a commit to Allanbikundo/morgan that referenced this issue Mar 18, 2020
@expressjs expressjs deleted a comment from Nayan-114 Apr 16, 2021
@expressjs expressjs locked as resolved and limited conversation to collaborators Apr 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants