This commit is contained in:
2026-04-21 10:45:56 +08:00
parent fc2ab0be85
commit 83c72106b4
3 changed files with 7 additions and 11 deletions

View File

@@ -36,13 +36,9 @@ spring:
max-file-size: 10MB
max-request-size: 10MB
# 日志配置
log:
path: ./logs
logging:
level:
com.fastbee: debug
com.maibu: debug
com.yomahub: debug
org.dromara: warn
org.springframework: warn

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 从Spring Boot配置中读取日志路径 -->
<springProperty scope="context" name="log.path" source="log.path" defaultValue="./logs"/>
<!-- <springProperty scope="context" name="log.path" source="log.path" defaultValue="logs"/>-->
<property name="log.path" scope="context" value="logs" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />