Log4j2 RoutingAppender with ListAppenders across Multiple Threads
I’m attempting to unit test the output of any logging coming from Log4j2 in my application Spring application via JUnit5. To help with this, I’ve created a JUnit5 extension that creates a WriterAppender
before each test that I can use to verify any logged messages.
Log4j2 Custom Appender in Maven Surefire: Possible to Reuse Across Threads?
I have a Log4j2 custom appender that’s being used in many of my JUnit5 tests.