使用log4j的多线程java应用程序中凌乱的日志

使用log4j的多线程java应用程序中凌乱的日志,java,multithreading,logging,log4j,Java,Multithreading,Logging,Log4j,我已经为多线程应用程序启用了log4j日志记录,这使得日志文件很难分析 日志文件看起来像 2019-10-02 07:49:55:DEBUG :Main: Start of the call 2019-10-02 07:49:55:DEBUG :pool-1-thread-4: Running in pool-1-thread-4 2019-10-02 07:49:55:DEBUG :pool-1-thread-2: Running in pool-1-thread-2 2019-10-0

我已经为多线程应用程序启用了log4j日志记录,这使得日志文件很难分析

日志文件看起来像

2019-10-02 07:49:55:DEBUG  :Main: Start of the call
2019-10-02 07:49:55:DEBUG  :pool-1-thread-4: Running in pool-1-thread-4
2019-10-02 07:49:55:DEBUG  :pool-1-thread-2: Running in pool-1-thread-2
2019-10-02 07:49:55:DEBUG  :pool-1-thread-4: Running in pool-1-thread-4
我们可以在日志记录时或至少在解析日志文件后根据线程id对日志进行分组吗?

CMD:

狂欢节: