ppkarwasz commented on PR #3199:
URL: https://github.com/apache/logging-log4j2/pull/3199#issuecomment-2468593620

   The weak reference to `MessageFactory` might require additional 
explanations. Unlike a weak reference to `Logger`, it will not cause `null` to 
be returned by `LoggerContext#getLogger`, since the method keeps a hard 
reference to the factory:
   
   
https://github.com/apache/logging-log4j2/blob/8ee9387d9ec2063ab11f27eaa43e44a13f4c9935/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java#L526-L536


-- 
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]

Reply via email to