This commit is contained in:
2026-04-21 10:07:28 +08:00
parent c021ffa3a2
commit fc2ab0be85
3 changed files with 18 additions and 6 deletions

View File

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