I have executed automated test cases with multithreads, managed by maven-surefire-plugin
. Each class has their own thread where it is executing and the log4j2 is configured with bufferIO = true
and immediateFlush= true
. In the output file, all the threads are mixing the information. I know that log4j2 has this buffer and I would like to know if each thread has their own buffer and if I can read from it before the information is written into the output file.
I read other question related to this topic, but it hasn't arrived at a solution. And for that reason, I'm trying to search another path to follow.