From ef33d360f056408588426f2bac1dcc14709a7541 Mon Sep 17 00:00:00 2001 From: Bruce Date: Mon, 22 Nov 2021 11:38:52 +0800 Subject: [PATCH] log lib keep 1 day --- packages/lib/src/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/src/log.ts b/packages/lib/src/log.ts index b62f2ac..611772a 100644 --- a/packages/lib/src/log.ts +++ b/packages/lib/src/log.ts @@ -31,7 +31,7 @@ function newRotateFile(filename: string, level: string = 'info', isJson: boolean createSymlink: true, symlinkName: `${filename}.log`, maxSize: '100m', - maxFiles: 100, + maxFiles: '1d', }) }