From 380f155fab6399c7edd2ec09d2693d30a74223f7 Mon Sep 17 00:00:00 2001 From: yang chen Date: Fri, 5 Dec 2025 09:07:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(logging):=20=E8=B0=83=E6=95=B4=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E7=8E=AF=E5=A2=83=E7=9A=84=E6=97=A5=E5=BF=97=E9=85=8D?= =?UTF-8?q?=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 @@ - + - - - - - - - - - - +