From 9b8617ed7983ce9bda942af9f4d27824abc61f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E6=AC=A7=EF=BC=88=E6=9E=97=E5=B9=B3=E5=87=A1?= =?UTF-8?q?=EF=BC=89?= Date: Tue, 3 Jun 2025 14:44:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 7 ++++--- src/main/resources/logback-spring.xml | 18 +++++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 927f25a..b6ccf5c 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -53,9 +53,10 @@ logging: level: cn.van333: debug org.springframework: warn - hibernate: error # 关闭 Hibernate 日志级别 - hibernate.SQLWaringLogger: error - hibernate.engine.query.spi.HQLQueryPlan: error + org.hibernate: ERROR + org.springframework.web: WARN + org.apache.http: WARN + com.zaxxer.hikari: ERROR rocketmq: name-server: 192.168.8.88:9876 # RocketMQ Name Server 地址 producer: diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 6db3500..3b28a56 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -1,25 +1,29 @@ + %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n - - - - - + + logs/app.log + + + logs/app.%d{yyyy-MM-dd}.log + + 15 + %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n - + + -