zsewasdsdsd opened a new pull request, #4404: URL: https://github.com/apache/logging-log4j2/pull/4404
## Summary Fixes #4403. `LocationAwareLogger.log()` in `log4j-slf4j-impl` previously constructed `SimpleMessage` and `ParameterizedMessage` directly, bypassing the logger's configured `MessageFactory`. This change delegates message construction to the configured factory while preserving the supplied caller FQCN and explicit `Throwable` precedence. ## Changes - Use the configured `MessageFactory` for location-aware logging. - Handle both null and non-null parameter arrays. - Preserve explicit exception precedence and caller information. - Add regression tests covering custom message factories. - Add a changelog entry for #4403. ## Verification - 30 tests passed (29 regular tests + 1 loop-detection test). - RED/GREEN regression verification completed. - Spotless: passed. - SpotBugs: 0 issues. - Apache RAT: passed. - Bnd Baseline: passed against 2.26.1. - Changelog validation: passed. - Maven install: BUILD SUCCESS (JDK 17). -- 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]
