From 3887892d4d25bb28cf324cc52a7c19cbb94667ce Mon Sep 17 00:00:00 2001 From: chenxing Date: Wed, 23 Sep 2026 09:46:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(ops):=20=E5=AF=B9=E9=BD=90=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=97=A5=E5=BF=97=E7=AD=96=E7=95=A5=E2=80=94=E2=80=94?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20logback-spring.xml=EF=BC=88app.log=20?= =?UTF-8?q?=E6=8C=89=E5=A4=A9=E6=BB=9A=E5=8A=A8/30=E5=A4=A9/5GB=EF=BC=8Cro?= =?UTF-8?q?ot=20INFO=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 此前无自定义 logback,走 Spring Boot 默认文件日志(spring.log 10MB 大小滚动、 仅留 7 天);现与 Notice/UserBase 一致:/app/logs/app.log 按天滚动。 日志级别由平台配置层管理(application-platform.yml root=INFO);私有配置中的 logging.level.root=DEBUG/show-sql 调试遗留已同步清除。 --- src/main/resources/logback-spring.xml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/resources/logback-spring.xml diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..929e44b --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,37 @@ + + + + + + + + + + ${CONSOLE_LOG_PATTERN} + ${CONSOLE_LOG_CHARSET} + + + + + + + /app/logs/app.log + + /app/logs/app.%d{yyyy-MM-dd}.log + 30 + 5GB + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + + + + + + + + + + +