From 53fa1addcd22557f6541092a151a3064779d3f93 Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期五, 12 十二月 2025 13:28:42 +0800
Subject: [PATCH] #AI
---
src/main/resources/logback-spring.xml | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index f72c762..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>
@@ -10,6 +13,8 @@
<property name="CONSOLE_LOG_PATTERN"
value="%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight(-%5p) ${PID:-} [%15.15t] %-40.40logger{39} : %m%n">
</property>
+
+ <appender name="AI_LOG" class="com.zy.ai.log.AiLogAppender"/>
<!--鎺у埗鍙�-->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
@@ -55,8 +60,9 @@
</appender>
<root level="INFO">
+ <appender-ref ref="AI_LOG"/>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="ERROR_FILE"/>
</root>
-</configuration>
\ No newline at end of file
+</configuration>
--
Gitblit v1.9.1