SweetWuXiaoMei commented on issue #3284:
URL:
https://github.com/apache/logging-log4j2/issues/3284#issuecomment-2553060075
version 2.24.1 is :
```
public Logger getLogger(final String name, final MessageFactory
messageFactory) {
MessageFactory effectiveMessageFactory = messageFactory != null ?
messageFactory : DEFAULT_MESSAGE_FACTORY;
Logger oldLogger = (Logger)this.loggerRegistry.getLogger(name,
effectiveMessageFactory);
if (oldLogger != null) {
return oldLogger;
} else {
Logger newLogger = this.newInstance(name, effectiveMessageFactory);
this.loggerRegistry.putIfAbsent(name, effectiveMessageFactory,
newLogger);
return (Logger)this.loggerRegistry.getLogger(name,
effectiveMessageFactory);
}
}
```
--
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]