Commit 724d3457b842fce9035ebc96acccf798d327ed7f
1 parent
e0dad689
日志打印优化
Signed-off-by: TanYibin <5491541@qq.com>
Showing
2 changed files
with
31 additions
and
31 deletions
huaheng-wms-core/pom.xml
... | ... | @@ -189,7 +189,7 @@ |
189 | 189 | <plugin> |
190 | 190 | <groupId>org.springframework.boot</groupId> |
191 | 191 | <artifactId>spring-boot-maven-plugin</artifactId> |
192 | - <!-- 引用外部lib文件夹启动jar包:java -jar -Dloader.path=./lib huaheng-wms-core-4.0.1.jar --> | |
192 | + <!-- 引用外部lib文件夹启动jar包:java -jar -Dloader.path=./lib huaheng-wms-core-xxxx-xx-xx-xx.jar --> | |
193 | 193 | <configuration> |
194 | 194 | <mainClass>org.jeecg.JeecgSystemApplication</mainClass> |
195 | 195 | <layout>ZIP</layout> |
... | ... |
huaheng-wms-core/src/main/resources/logback-spring.xml
... | ... | @@ -37,37 +37,37 @@ |
37 | 37 | </appender> |
38 | 38 | |
39 | 39 | <!-- 生成 error html格式日志开始 --> |
40 | - <appender name="HTML" class="ch.qos.logback.core.FileAppender"> | |
41 | - <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | |
42 | - <!--设置日志级别,过滤掉info日志,只输入error日志 --> | |
43 | - <level>ERROR</level> | |
44 | - </filter> | |
45 | - <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> | |
46 | - <layout class="ch.qos.logback.classic.html.HTMLLayout"> | |
47 | - <pattern>%p%d%msg%M%F{32}%L</pattern> | |
48 | - </layout> | |
49 | - </encoder> | |
50 | - <file>${LOG_HOME}/${appName}.error.html</file> | |
51 | - </appender> | |
40 | +<!-- <appender name="HTML" class="ch.qos.logback.core.FileAppender"> --> | |
41 | +<!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> --> | |
42 | +<!-- 设置日志级别,过滤掉info日志,只输入error日志 --> | |
43 | +<!-- <level>ERROR</level> --> | |
44 | +<!-- </filter> --> | |
45 | +<!-- <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> --> | |
46 | +<!-- <layout class="ch.qos.logback.classic.html.HTMLLayout"> --> | |
47 | +<!-- <pattern>%p%d%msg%M%F{32}%L</pattern> --> | |
48 | +<!-- </layout> --> | |
49 | +<!-- </encoder> --> | |
50 | +<!-- <file>${LOG_HOME}/${appName}.error.html</file> --> | |
51 | +<!-- </appender> --> | |
52 | 52 | <!-- 生成 error html格式日志结束 --> |
53 | 53 | |
54 | 54 | <!-- 每天生成一个html格式的日志开始 --> |
55 | - <appender name="FILE_HTML" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
56 | - <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | |
57 | - <!--日志文件输出的文件名 --> | |
58 | - <FileNamePattern>${LOG_HOME}/${appName}.%d{yyyy-MM-dd}.%i.html</FileNamePattern> | |
59 | - <!--日志文件保留天数 --> | |
60 | - <MaxHistory>30</MaxHistory> | |
61 | - <MaxFileSize>100MB</MaxFileSize> | |
62 | - <totalSizeCap>10GB</totalSizeCap> | |
63 | - <cleanHistoryOnStart>true</cleanHistoryOnStart> | |
64 | - </rollingPolicy> | |
65 | - <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> | |
66 | - <layout class="ch.qos.logback.classic.html.HTMLLayout"> | |
67 | - <pattern>%p%d%msg%M%F{32}%L</pattern> | |
68 | - </layout> | |
69 | - </encoder> | |
70 | - </appender> | |
55 | +<!-- <appender name="FILE_HTML" class="ch.qos.logback.core.rolling.RollingFileAppender"> --> | |
56 | +<!-- <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> --> | |
57 | +<!-- 日志文件输出的文件名 --> | |
58 | +<!-- <FileNamePattern>${LOG_HOME}/${appName}.%d{yyyy-MM-dd}.%i.html</FileNamePattern> --> | |
59 | +<!-- 日志文件保留天数 --> | |
60 | +<!-- <MaxHistory>30</MaxHistory> --> | |
61 | +<!-- <MaxFileSize>100MB</MaxFileSize> --> | |
62 | +<!-- <totalSizeCap>10GB</totalSizeCap> --> | |
63 | +<!-- <cleanHistoryOnStart>true</cleanHistoryOnStart> --> | |
64 | +<!-- </rollingPolicy> --> | |
65 | +<!-- <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> --> | |
66 | +<!-- <layout class="ch.qos.logback.classic.html.HTMLLayout"> --> | |
67 | +<!-- <pattern>%p%d%msg%M%F{32}%L</pattern> --> | |
68 | +<!-- </layout> --> | |
69 | +<!-- </encoder> --> | |
70 | +<!-- </appender> --> | |
71 | 71 | <!-- 每天生成一个html格式的日志结束 --> |
72 | 72 | |
73 | 73 | <!--myibatis log configure --> |
... | ... | @@ -101,8 +101,8 @@ |
101 | 101 | <root level="INFO"> |
102 | 102 | <appender-ref ref="STDOUT" /> |
103 | 103 | <appender-ref ref="FILE" /> |
104 | - <appender-ref ref="HTML" /> | |
105 | - <appender-ref ref="FILE_HTML" /> | |
104 | +<!-- <appender-ref ref="HTML" /> --> | |
105 | +<!-- <appender-ref ref="FILE_HTML" /> --> | |
106 | 106 | </root> |
107 | 107 | |
108 | 108 | |
... | ... |