From 66ff517da16612fbba056499f3c414932c71c71c Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期四, 11 十二月 2025 18:04:15 +0800
Subject: [PATCH] #AI
---
src/main/resources/logback-spring.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index 6fa80d8..fdc914b 100644
--- a/src/main/resources/logback-spring.xml
+++ b/src/main/resources/logback-spring.xml
@@ -3,6 +3,9 @@
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
+ <springProperty scope="context" name="LOG_FILE_PATH" source="logging.file.path"/>
+ <property name="LOG_PATH" value="${LOG_FILE_PATH:-./stock/out/@pom.build.finalName@/logs}"/>
+
<property name="CONSOLE_LOG_PATTERN"
value="%date{yyyy-MM-dd HH:mm:ss}|%highlight(%-5level)|%boldYellow(%thread)|%boldGreen(%logger) %msg%n">
</property>
@@ -62,4 +65,4 @@
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="ERROR_FILE"/>
</root>
-</configuration>
\ No newline at end of file
+</configuration>
--
Gitblit v1.9.1