From 8840eccf41c6e39a19b182df8185972afffdc327 Mon Sep 17 00:00:00 2001 From: yang chen Date: Fri, 17 Oct 2025 21:22:39 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E8=B0=83=E6=95=B4=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=8F=8A=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改日志文件存储路径为用户主目录下 logs 文件夹 - 设置多个 Mapper 和框架类的日志级别为 ERROR - 禁用不必要的日志打印以提升性能 - 统一生产环境与办公环境的日志配置格式 --- .../src/main/resources/application-office.yaml | 10 +++++++++- .../src/main/resources/application-prod.yaml | 9 ++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/jeelowcode-admin/src/main/resources/application-office.yaml b/jeelowcode-admin/src/main/resources/application-office.yaml index 96c8de5..0e07093 100644 --- a/jeelowcode-admin/src/main/resources/application-office.yaml +++ b/jeelowcode-admin/src/main/resources/application-office.yaml @@ -40,7 +40,15 @@ spring: logging: file: - name: /data/mjkj/webapp/mjkj_jeelowcode/webapp/logs/${spring.application.name}.log # 日志文件名,全路径 + name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 + level: + com.jeelowcode.core.framework.mapper.LogApiMapper: ERROR #日志入库不需要打印 + com.jeelowcode.core.framework.mapper.LogApiErrorMapper: ERROR #日志入库不需要打印 + com.jeelowcode.service.system.mapper.OperateLogMapper: error #日志入库不需要打印 + org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR + org.mybatis.spring.mapper.ClassPathMapperScanner: error + de.codecentric: error + --- #################### 芋道相关配置 #################### # 芋道配置项,设置当前项目所有自定义的配置 diff --git a/jeelowcode-admin/src/main/resources/application-prod.yaml b/jeelowcode-admin/src/main/resources/application-prod.yaml index d4265e9..194dc56 100644 --- a/jeelowcode-admin/src/main/resources/application-prod.yaml +++ b/jeelowcode-admin/src/main/resources/application-prod.yaml @@ -40,7 +40,14 @@ spring: logging: file: - name: /data/mjkj/webapp/mjkj_jeelowcode/webapp/logs/${spring.application.name}.log # 日志文件名,全路径 + name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 + level: + com.jeelowcode.core.framework.mapper.LogApiMapper: ERROR #日志入库不需要打印 + com.jeelowcode.core.framework.mapper.LogApiErrorMapper: ERROR #日志入库不需要打印 + com.jeelowcode.service.system.mapper.OperateLogMapper: error #日志入库不需要打印 + org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR + org.mybatis.spring.mapper.ClassPathMapperScanner: error + de.codecentric: error --- #################### 芋道相关配置 #################### # 芋道配置项,设置当前项目所有自定义的配置