From 32bfe334c0be11152b1789ddcc2d54b26daf342b Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 21 十月 2021 18:41:56 +0800 Subject: [PATCH] update 整理删除无用注释 保证代码整洁 --- ruoyi-admin/src/main/resources/logback.xml | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/resources/logback.xml b/ruoyi-admin/src/main/resources/logback.xml index d407df4..33a1697 100644 --- a/ruoyi-admin/src/main/resources/logback.xml +++ b/ruoyi-admin/src/main/resources/logback.xml @@ -7,16 +7,22 @@ <!-- 鎺у埗鍙拌緭鍑� --> <appender name="console" class="ch.qos.logback.core.ConsoleAppender"> - <encoder> + <encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder"> <pattern>${console.log.pattern}</pattern> <charset>utf-8</charset> </encoder> </appender> <!-- 鎺у埗鍙拌緭鍑� --> - <appender name="file_console" class="ch.qos.logback.core.FileAppender"> + <appender name="file_console" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${log.path}/sys-console.log</file> - <encoder> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <!-- 鏃ュ織鏂囦欢鍚嶆牸寮� --> + <fileNamePattern>${log.path}/sys-console.%d{yyyy-MM-dd}.log</fileNamePattern> + <!-- 鏃ュ織鏈�澶� 1澶� --> + <maxHistory>1</maxHistory> + </rollingPolicy> + <encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder"> <pattern>${log.pattern}</pattern> <charset>utf-8</charset> </encoder> @@ -36,7 +42,7 @@ <!-- 鏃ュ織鏈�澶х殑鍘嗗彶 60澶� --> <maxHistory>60</maxHistory> </rollingPolicy> - <encoder> + <encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder"> <pattern>${log.pattern}</pattern> </encoder> <filter class="ch.qos.logback.classic.filter.LevelFilter"> @@ -58,7 +64,7 @@ <!-- 鏃ュ織鏈�澶х殑鍘嗗彶 60澶� --> <maxHistory>60</maxHistory> </rollingPolicy> - <encoder> + <encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder"> <pattern>${log.pattern}</pattern> </encoder> <filter class="ch.qos.logback.classic.filter.LevelFilter"> @@ -80,7 +86,7 @@ <!-- 鏃ュ織鏈�澶х殑鍘嗗彶 60澶� --> <maxHistory>60</maxHistory> </rollingPolicy> - <encoder> + <encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder"> <pattern>${log.pattern}</pattern> </encoder> </appender> -- Gitblit v1.9.3