日志输出采用异步输出模式
This commit is contained in:
parent
ae3556ac3e
commit
1af6d798ed
|
@ -42,6 +42,24 @@
|
|||
</encoder>
|
||||
</appender>
|
||||
|
||||
<appender name="ASYNC-INFO" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 -->
|
||||
<discardingThreshold>0</discardingThreshold>
|
||||
<!-- 更改默认的队列的深度,该值会影响性能.默认值为256 -->
|
||||
<queueSize>256</queueSize>
|
||||
<!-- 添加附加的appender,最多只能添加一个 -->
|
||||
<appender-ref ref="FILE_INFO"/>
|
||||
</appender>
|
||||
|
||||
<appender name="ASYNC-ERROR" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 -->
|
||||
<discardingThreshold>0</discardingThreshold>
|
||||
<!-- 更改默认的队列的深度,该值会影响性能.默认值为256 -->
|
||||
<queueSize>256</queueSize>
|
||||
<!-- 添加附加的appender,最多只能添加一个 -->
|
||||
<appender-ref ref="FILE_ERROR"/>
|
||||
</appender>
|
||||
|
||||
<!-- 开发、测试环境 -->
|
||||
<springProfile name="dev,test,show">
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
|
|
Loading…
Reference in New Issue