参考

Making All Loggers Asynchronous

将原本的log4j2同步日志转化为“完全异步日志模式”。官方文档:

This is simplest to configure and gives the best performance. To make all loggers asynchronous, add the disruptor jar to the classpath and set the system property log4j2.contextSelector to org.apache.logging.log4j.core.async.AsyncLoggerContextSelector.

Log4j-2.9 and higher require disruptor-3.3.4.jar or higher on the classpath. Prior to Log4j-2.9, disruptor-3.0.0.jar or higher was required.
document ...

相关文章:

  • 2021-08-10
  • 2022-12-23
  • 2021-12-31
  • 2021-05-19
  • 2022-12-23
  • 2021-05-31
  • 2022-02-12
  • 2021-10-03
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
相关资源
相似解决方案