|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 控制台输出 -->
|
|
|
|
|
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
|
|
|
|
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
|
|
|
|
|
<encoder>
|
|
|
|
|
<pattern>${console.log.pattern}</pattern>
|
|
|
|
|
<charset>utf-8</charset>
|
|
|
|
|
</encoder>
|
|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
<!-- 日志最大 1天 -->
|
|
|
|
|
<maxHistory>1</maxHistory>
|
|
|
|
|
</rollingPolicy>
|
|
|
|
|
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
|
|
|
|
|
<encoder>
|
|
|
|
|
<pattern>${log.pattern}</pattern>
|
|
|
|
|
<charset>utf-8</charset>
|
|
|
|
|
</encoder>
|
|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
<!-- 日志最大的历史 60天 -->
|
|
|
|
|
<maxHistory>60</maxHistory>
|
|
|
|
|
</rollingPolicy>
|
|
|
|
|
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
|
|
|
|
|
<encoder>
|
|
|
|
|
<pattern>${log.pattern}</pattern>
|
|
|
|
|
</encoder>
|
|
|
|
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
<!-- 日志最大的历史 60天 -->
|
|
|
|
|
<maxHistory>60</maxHistory>
|
|
|
|
|
</rollingPolicy>
|
|
|
|
|
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
|
|
|
|
|
<encoder>
|
|
|
|
|
<pattern>${log.pattern}</pattern>
|
|
|
|
|
</encoder>
|
|
|
|
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
|
|
|
@ -78,7 +78,7 @@
|
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
|
|
<!-- info异步输出 -->
|
|
|
|
|
<appender name="async_info" class="com.yomahub.tlog.core.enhance.logback.async.AspectLogbackAsyncAppender">
|
|
|
|
|
<appender name="async_info" class="ch.qos.logback.classic.AsyncAppender">
|
|
|
|
|
<!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 -->
|
|
|
|
|
<discardingThreshold>0</discardingThreshold>
|
|
|
|
|
<!-- 更改默认的队列的深度,该值会影响性能.默认值为256 -->
|
|
|
|
@ -88,7 +88,7 @@
|
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
|
|
<!-- error异步输出 -->
|
|
|
|
|
<appender name="async_error" class="com.yomahub.tlog.core.enhance.logback.async.AspectLogbackAsyncAppender">
|
|
|
|
|
<appender name="async_error" class="ch.qos.logback.classic.AsyncAppender">
|
|
|
|
|
<!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 -->
|
|
|
|
|
<discardingThreshold>0</discardingThreshold>
|
|
|
|
|
<!-- 更改默认的队列的深度,该值会影响性能.默认值为256 -->
|
|
|
|
|