rgoers commented on PR #1471: URL: https://github.com/apache/logging-log4j2/pull/1471#issuecomment-1554887448
I agree with @ppkarwasz's comment that creating new LoggerContexts for each test is wasteful. However, there are times when it is required. In many of those cases we handle it by shutting down the LoggerContext after each test method. But that doesn't allow for multi-threading. Does Junit not provide an annotation to indicate tests shouldn't be forked? Creating a ListAppender that uses a ThreadLocal seems incredibly easy to implement. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
