Skip to content

Commit

Permalink
close winston zip, keep max files 100
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce authored and Bruce committed Oct 12, 2021
1 parent 2df4baa commit 1f24c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lib/src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ function newRotateFile(filename: string, level: string = 'info', isJson: boolean
level,
filename: `logs/${filename}-%DATE%.log`,
datePattern: 'YYYY-MM-DD',
zippedArchive: true,
// zippedArchive: true,
handleExceptions: true,
json: isJson,
createSymlink: true,
symlinkName: `${filename}.log`,
maxSize: '100m',
maxFiles: 50,
maxFiles: 100,
})
}

Expand Down

0 comments on commit 1f24c41

Please sign in to comment.