making logs work with git ignore?

This commit is contained in:
2021-12-30 13:35:15 -06:00
parent 68bbf0f450
commit d4e774354f
7 changed files with 1 additions and 6 deletions

View File

@@ -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.

View File

@@ -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