简体   繁体   中英

How do I configure the Root Logger to be Async in Log4j via XML?

I want to have all async loggers, I know there's a way to globally set all loggers to be async, but I was thinking of just writing them as async in the XML file, However, I can't find any documentation on how to make the root logger async via XML. How can I configure the Root logger to be asynchronous using XML?

mentioned in the comments <AsyncLogger name=""> seems to work... but more correctly? we found <AsyncRoot> .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM