From f6a982122899ae4d61b747ba68fe586026fb805b Mon Sep 17 00:00:00 2001 From: gaoshuaixing Date: Sat, 6 May 2023 18:27:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=88=86=E5=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/config/config.default.js | 12 +++++++++--- package.json | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/electron/config/config.default.js b/electron/config/config.default.js index 711033d..0a5a829 100644 --- a/electron/config/config.default.js +++ b/electron/config/config.default.js @@ -1,6 +1,5 @@ 'use strict'; -const dayjs = require('dayjs'); const path = require('path'); /** @@ -65,8 +64,15 @@ module.exports = (appInfo) => { * ee框架日志 */ config.logger = { - appLogName: `ee-${dayjs().format('YYYY-MM-DD')}.log`, - errorLogName: `ee-error-${dayjs().format('YYYY-MM-DD')}.log` + encoding: 'utf8', + level: 'INFO', + outputJSON: false, + buffer: true, + enablePerformanceTimer: false, + rotator: 'day', + appLogName: 'ee.log', + coreLogName: 'ee-core.log', + errorLogName: 'ee-error.log' } /** diff --git a/package.json b/package.json index 7642631..a55cf7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ee", - "version": "3.1.0", + "version": "3.2.0", "description": "A fast, desktop software development framework", "main": "main.js", "scripts": {