From 908ccc18555ebe1d075eca6accbf0c16c90ea408 Mon Sep 17 00:00:00 2001 From: yang chen Date: Thu, 4 Dec 2025 17:15:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore(config):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E6=97=A5=E5=BF=97=E7=BA=A7?= =?UTF-8?q?=E5=88=AB=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除 application-office.yaml 中的日志 mapper 配置 - 删除 application-prod.yaml 中的日志 mapper 配置 - 清理无用的 Spring 和 MyBatis 日志级别设置 --- .../src/main/resources/application-office.yaml | 7 ------- jeelowcode-admin/src/main/resources/application-prod.yaml | 7 ------- 2 files changed, 14 deletions(-) diff --git a/jeelowcode-admin/src/main/resources/application-office.yaml b/jeelowcode-admin/src/main/resources/application-office.yaml index 48656e5..3dcb18f 100644 --- a/jeelowcode-admin/src/main/resources/application-office.yaml +++ b/jeelowcode-admin/src/main/resources/application-office.yaml @@ -41,13 +41,6 @@ spring: logging: file: 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 0d05fab..e52b99b 100644 --- a/jeelowcode-admin/src/main/resources/application-prod.yaml +++ b/jeelowcode-admin/src/main/resources/application-prod.yaml @@ -41,13 +41,6 @@ spring: logging: file: 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 --- #################### 芋道相关配置 #################### # 芋道配置项,设置当前项目所有自定义的配置 From 380f155fab6399c7edd2ec09d2693d30a74223f7 Mon Sep 17 00:00:00 2001 From: yang chen Date: Fri, 5 Dec 2025 09:07:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat(logging):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=8E=AF=E5=A2=83=E7=9A=84=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 application-office.yaml 和 application-prod.yaml 中的 logging.file 配置 - 在 logback-spring.xml 中统一配置多环境日志输出 - 合并 dev,test,stage,default,prod,office 环境的日志 appender 引用 - 删除针对 prod 和 office 环境的独立日志级别配置 - 保留 gRPC 和异步日志输出方式 - 确保 com.jeelowcode 包在所有环境中使用 INFO 级别日志 --- .../src/main/resources/application-office.yaml | 5 ----- .../src/main/resources/application-prod.yaml | 4 ---- .../src/main/resources/logback-spring.xml | 13 ++----------- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/jeelowcode-admin/src/main/resources/application-office.yaml b/jeelowcode-admin/src/main/resources/application-office.yaml index 3dcb18f..e072050 100644 --- a/jeelowcode-admin/src/main/resources/application-office.yaml +++ b/jeelowcode-admin/src/main/resources/application-office.yaml @@ -37,11 +37,6 @@ spring: database: 0 # 数据库索引 # password: 123456 # 密码,建议生产环境开启 - -logging: - file: - name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 - --- #################### 芋道相关配置 #################### # 芋道配置项,设置当前项目所有自定义的配置 diff --git a/jeelowcode-admin/src/main/resources/application-prod.yaml b/jeelowcode-admin/src/main/resources/application-prod.yaml index e52b99b..e595b0f 100644 --- a/jeelowcode-admin/src/main/resources/application-prod.yaml +++ b/jeelowcode-admin/src/main/resources/application-prod.yaml @@ -37,10 +37,6 @@ spring: # database: 10 # 数据库索引 # password: 123456 # 密码,建议生产环境开启 - -logging: - file: - name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 --- #################### 芋道相关配置 #################### # 芋道配置项,设置当前项目所有自定义的配置 diff --git a/jeelowcode-admin/src/main/resources/logback-spring.xml b/jeelowcode-admin/src/main/resources/logback-spring.xml index ec01cac..713a5e2 100644 --- a/jeelowcode-admin/src/main/resources/logback-spring.xml +++ b/jeelowcode-admin/src/main/resources/logback-spring.xml @@ -67,21 +67,12 @@ - + - - - - - - - - - - +