Skip to content

Commit

Permalink
Merge 5d8176f into c54194c
Browse files Browse the repository at this point in the history
  • Loading branch information
Allanbikundo committed Mar 18, 2020
2 parents c54194c + 5d8176f commit 2047d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -314,12 +314,12 @@ file per day in the `log/` directory using the
var express = require('express')
var morgan = require('morgan')
var path = require('path')
var rfs = require('rotating-file-stream')
var rfs = require('rotating-file-stream') // version 2.x

var app = express()

// create a rotating write stream
var accessLogStream = rfs('access.log', {
var accessLogStream = rfs.createStream('access.log', {
interval: '1d', // rotate daily
path: path.join(__dirname, 'log')
})
Expand Down

0 comments on commit 2047d42

Please sign in to comment.