We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54194c commit 5d8176fCopy full SHA for 5d8176f
1 file changed
README.md
@@ -314,12 +314,12 @@ file per day in the `log/` directory using the
314
var express = require('express')
315
var morgan = require('morgan')
316
var path = require('path')
317
-var rfs = require('rotating-file-stream')
+var rfs = require('rotating-file-stream') // version 2.x
318
319
var app = express()
320
321
// create a rotating write stream
322
-var accessLogStream = rfs('access.log', {
+var accessLogStream = rfs.createStream('access.log', {
323
interval: '1d', // rotate daily
324
path: path.join(__dirname, 'log')
325
})
0 commit comments