From 7e474d3807a2288e171725c87b6c43392ec94fca Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期二, 19 八月 2025 19:30:39 +0800
Subject: [PATCH] 提交代码

---
 user/guns-admin/src/main/resources/logback-spring.xml |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/user/guns-admin/src/main/resources/logback-spring.xml b/user/guns-admin/src/main/resources/logback-spring.xml
index 26c8fee..b343b8b 100644
--- a/user/guns-admin/src/main/resources/logback-spring.xml
+++ b/user/guns-admin/src/main/resources/logback-spring.xml
@@ -7,8 +7,7 @@
     <contextName>logback</contextName>
 
     <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义后,可以使“${}”来使用变量。 -->
-    <property name="log.path" value="/usr/local/server/app/logs/user"/>
-    <!--<property name="log.path" value="d:/logs/user"/>-->
+    <property name="log.path" value="/etraffic/server/logs/daijia/user"/>
 
     <!--0. 日志格式和颜色渲染 -->
     <!-- 彩色日志依赖的渲染类 -->
@@ -44,7 +43,7 @@
         <!-- 日志记录器的滚动策略,按日期,按大小记录 -->
         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
             <!-- 日志归档 -->
-            <fileNamePattern>${log.path}/${artifactId}/%d{yyyy-MM-dd}/debug-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
+            <fileNamePattern>${log.path}/%d{yyyy-MM-dd}/debug-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
             <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
                 <maxFileSize>100MB</maxFileSize>
             </timeBasedFileNamingAndTriggeringPolicy>
@@ -154,7 +153,7 @@
                 <maxFileSize>100MB</maxFileSize>
             </timeBasedFileNamingAndTriggeringPolicy>
             <!--日志文档保留天数-->
-            <maxHistory>200</maxHistory>
+            <maxHistory>15</maxHistory>
         </rollingPolicy>
         <!-- 此日志文档记录除了DEBUG级别的其它高于DEBUG的 -->
         <filter class="ch.qos.logback.classic.filter.LevelFilter">
@@ -195,11 +194,10 @@
             <appender-ref ref="ERROR_FILE" />
             <appender-ref ref="ALL_FILE" />
         </root>
-        <logger name="ServiceLog" level="debug"/>
-        <logger name="com.supersavedriving.user.modular.system.dao" level="debug"/>
+        <logger name="com.stylefeng.guns.modular.system.dao" level="debug"/>
     </springProfile>
 
-    <springProfile name="fat">
+    <springProfile name="test">
         <root level="info">
             <appender-ref ref="CONSOLE" />
             <appender-ref ref="DEBUG_FILE" />
@@ -208,11 +206,9 @@
             <appender-ref ref="ERROR_FILE" />
             <appender-ref ref="ALL_FILE" />
         </root>
-        <logger name="ServiceLog" level="debug"/>
-        <logger name="com.supersavedriving.user.modular.system.dao" level="debug"/>
     </springProfile>
 
-    <springProfile name="produce">
+    <springProfile name="prod">
         <root level="info">
             <!-- 生产环境最好不配置console写文件 -->
             <appender-ref ref="DEBUG_FILE" />
@@ -221,8 +217,6 @@
             <appender-ref ref="ERROR_FILE" />
             <appender-ref ref="ALL_FILE" />
         </root>
-        <logger name="ServiceLog" level="debug"/>
-        <logger name="com.supersavedriving.user.modular.system.dao" level="debug"/>
     </springProfile>
 
 </configuration>
\ No newline at end of file

--
Gitblit v1.7.1