making logs work with git ignore?
This commit is contained in:
2
index.js
2
index.js
@@ -11,7 +11,7 @@ const rfs = require('rotating-file-stream'); // version 2.x
|
||||
// create a rotating write stream in the log/ directory
|
||||
const accessLogStream = rfs.createStream('access.log', {
|
||||
interval: '1m', //! rotate time (change me!)
|
||||
path: path.join(__dirname, 'log'),
|
||||
path: path.join(__dirname, 'logs'),
|
||||
compress: 'gzip',
|
||||
maxFiles: 5,
|
||||
maxSize: '1MB',
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +0,0 @@
|
||||
C:\Users\fanel\Desktop\Middleware_Intro\log\20211230-1235-01-access.log.gz
|
||||
C:\Users\fanel\Desktop\Middleware_Intro\log\20211230-1236-01-access.log.gz
|
||||
C:\Users\fanel\Desktop\Middleware_Intro\log\20211230-1237-01-access.log.gz
|
||||
C:\Users\fanel\Desktop\Middleware_Intro\log\20211230-1238-01-access.log.gz
|
||||
C:\Users\fanel\Desktop\Middleware_Intro\log\20211230-1239-01-access.log.gz
|
||||
Reference in New Issue
Block a user