How to use log4j's FileAppenders asynchronously?

前端 未结 3 543
孤城傲影
孤城傲影 2021-02-06 05:49

I work on a low-latency trading application. We\'d like to increase the amount of lof4j logging that we write to file, whilst minimising the impact on our end-to-end processing

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 06:08

    Yes, the appenders are synchronous. You want something like this:

    http://www.spartanjava.com/2009/asynchronous-logging-with-log4j/

提交回复
热议问题