<!-- 异步输出 -->
<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="INFO-LOG"/>
</appender>

  

相关文章:

  • 2021-09-17
  • 2022-01-13
  • 2021-12-25
  • 2021-07-09
  • 2022-02-04
  • 2022-12-23
  • 2021-08-06
  • 2021-08-08
猜你喜欢
  • 2019-08-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案