phanindra798 opened a new pull request, #4465: URL: https://github.com/apache/logging-log4j2/pull/4465
Fixes #3281. Repeated calls to JUL configuration methods currently emit repeated warnings. This change adds `log4j2.julMutatorAccess` with `warn-once` (default), `warn`, and `ignore` modes. Warnings identify the calling class and suggest contacting its maintainer. The default emits one warning across ApiLogger instances sharing a class loader, including concurrent calls. Configuration documentation and a changelog entry are included. Validation completed with `./mvnw -pl log4j-jul verify`. All 107 module tests passed, along with formatting, static analysis, and API compatibility checks. All three new regression tests fail against the original implementation. The full repository test suite and website build were not run. OpenAI Codex assisted with implementation and testing. ## Checklist * Base your changes on `2.x` branch if you are targeting Log4j 2; use `main` otherwise * `./mvnw verify` succeeds ([the build instructions](https://logging.apache.org/log4j/2.x/development.html#building)) * Non-trivial changes contain an entry file in the `src/changelog/.2.x.x` directory * Tests are provided -- 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]
