|
@ -21,7 +21,9 @@ https://juejin.cn/post/6844903775631572999 |
|
|
<include resource="log/XgAgvDeviceDriver.xml"/> |
|
|
<include resource="log/XgAgvDeviceDriver.xml"/> |
|
|
|
|
|
|
|
|
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
|
|
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
|
|
<encoder> |
|
|
<!--withJansi 参数改为true--> |
|
|
|
|
|
<withJansi>true</withJansi> |
|
|
|
|
|
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder"> |
|
|
<pattern>${log.pattern}</pattern> |
|
|
<pattern>${log.pattern}</pattern> |
|
|
<!-- <charset>${log.charset}</charset>--> |
|
|
<!-- <charset>${log.charset}</charset>--> |
|
|
</encoder> |
|
|
</encoder> |
|
@ -61,7 +63,7 @@ https://juejin.cn/post/6844903775631572999 |
|
|
</appender> |
|
|
</appender> |
|
|
|
|
|
|
|
|
<!--异步到文件--> |
|
|
<!--异步到文件--> |
|
|
<appender name="asyncFileAppender" class="ch.qos.logback.classic.AsyncAppender"> |
|
|
<appender name="asyncFileAppender" class="com.yomahub.tlog.core.enhance.logback.async.AspectLogbackAsyncAppender"> |
|
|
<discardingThreshold>0</discardingThreshold> |
|
|
<discardingThreshold>0</discardingThreshold> |
|
|
<queueSize>500</queueSize> |
|
|
<queueSize>500</queueSize> |
|
|
<appender-ref ref="FILE"/> |
|
|
<appender-ref ref="FILE"/> |
|
@ -73,58 +75,58 @@ https://juejin.cn/post/6844903775631572999 |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncLuceneAppender"/> |
|
|
<appender-ref ref="asyncLuceneAppender"/> |
|
|
</root> |
|
|
</root> |
|
|
<logger name="org.springframework" level="ERROR" additivity="false"> |
|
|
<logger name="org.springframework" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="com.baomidou.dynamic.datasource.DynamicRoutingDataSource" level="INFO" additivity="false"> |
|
|
<logger name="com.baomidou.dynamic.datasource.DynamicRoutingDataSource" level="INFO" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.redisson.connection.pool.MasterPubSubConnectionPool" level="INFO" additivity="false"> |
|
|
<logger name="org.redisson.connection.pool.MasterPubSubConnectionPool" level="INFO" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.redisson.connection.pool.MasterConnectionPool" level="INFO" additivity="false"> |
|
|
<logger name="org.redisson.connection.pool.MasterConnectionPool" level="INFO" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.redisson.Version" level="INFO" additivity="false"> |
|
|
<logger name="org.redisson.Version" level="INFO" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="com.alibaba.druid.pool.DruidDataSource" level="INFO" additivity="false"> |
|
|
<logger name="com.alibaba.druid.pool.DruidDataSource" level="INFO" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.nl.config.RedisConfig" level="INFO" additivity="false"> |
|
|
<logger name="org.nl.config.RedisConfig" level="INFO" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.apache" level="ERROR" additivity="false"> |
|
|
<logger name="org.apache" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.hibernate" level="ERROR" additivity="false"> |
|
|
<logger name="org.hibernate" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="io.netty" level="ERROR" additivity="false"> |
|
|
<logger name="io.netty" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="jdbc" level="ERROR" additivity="false"> |
|
|
<logger name="jdbc" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="io.lettuce" level="ERROR" additivity="false"> |
|
|
<logger name="io.lettuce" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="com.fasterxml" level="ERROR" additivity="false"> |
|
|
<logger name="com.fasterxml" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.quartz" level="ERROR" additivity="false"> |
|
|
<logger name="org.quartz" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="com.google" level="ERROR" additivity="false"> |
|
|
<logger name="com.google" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="springfox" level="ERROR" additivity="false"> |
|
|
<logger name="springfox" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="log4jdbc" level="ERROR" additivity="false"> |
|
|
<logger name="log4jdbc" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="nl.basjes" level="ERROR" additivity="false"> |
|
|
<logger name="nl.basjes" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
</springProfile> |
|
|
</springProfile> |
|
@ -136,40 +138,40 @@ https://juejin.cn/post/6844903775631572999 |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncLuceneAppender"/> |
|
|
<appender-ref ref="asyncLuceneAppender"/> |
|
|
</root> |
|
|
</root> |
|
|
<logger name="org.springframework" level="ERROR" additivity="false"> |
|
|
<logger name="org.springframework" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.apache" level="ERROR" additivity="false"> |
|
|
<logger name="org.apache" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.hibernate" level="ERROR" additivity="false"> |
|
|
<logger name="org.hibernate" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="io.netty" level="ERROR" additivity="false"> |
|
|
<logger name="io.netty" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="jdbc" level="ERROR" additivity="false"> |
|
|
<logger name="jdbc" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="io.lettuce" level="ERROR" additivity="false"> |
|
|
<logger name="io.lettuce" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="com.fasterxml" level="ERROR" additivity="false"> |
|
|
<logger name="com.fasterxml" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="org.quartz" level="ERROR" additivity="false"> |
|
|
<logger name="org.quartz" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="com.google" level="ERROR" additivity="false"> |
|
|
<logger name="com.google" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="springfox" level="ERROR" additivity="false"> |
|
|
<logger name="springfox" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="log4jdbc" level="ERROR" additivity="false"> |
|
|
<logger name="log4jdbc" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="nl.basjes" level="ERROR" additivity="false"> |
|
|
<logger name="nl.basjes" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</logger> |
|
|
</logger> |
|
|
</springProfile> |
|
|
</springProfile> |
|
@ -180,19 +182,19 @@ https://juejin.cn/post/6844903775631572999 |
|
|
<root level="INFO"> |
|
|
<root level="INFO"> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
<appender-ref ref="asyncFileAppender"/> |
|
|
</root> |
|
|
</root> |
|
|
<logger name="jdbc.audit" level="ERROR" additivity="false"> |
|
|
<logger name="jdbc.audit" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="jdbc.resultset" level="ERROR" additivity="false"> |
|
|
<logger name="jdbc.resultset" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="springfox.documentation" level="ERROR" additivity="false"> |
|
|
<logger name="springfox.documentation" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="jdbc.resultsettable" level="ERROR" additivity="false"> |
|
|
<logger name="jdbc.resultsettable" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
<logger name="jdbc.sqlonly" level="ERROR" additivity="false"> |
|
|
<logger name="jdbc.sqlonly" level="ERROR" additivity="true"> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
<appender-ref ref="CONSOLE"/> |
|
|
</logger> |
|
|
</logger> |
|
|
</springProfile> |
|
|
</springProfile> |
|
|