F64116045 opened a new pull request, #11005: URL: https://github.com/apache/ozone/pull/11005
## What changes were proposed in this pull request? S3 Gateway now redirects Java Util Logging (JUL) records to SLF4J before initializing Jersey. Jersey logs through JUL, whose default `ConsoleHandler` writes to stderr. As a result, Jersey warnings were written to the S3 Gateway daemon's stderr output instead of the configured S3 Gateway log file. This change adds the SLF4J JUL bridge to the S3 Gateway module, removes the JUL root logger's existing handlers during S3 Gateway startup, and installs `SLF4JBridgeHandler`. JUL records are then handled by the existing SLF4J/reload4j configuration and written to the regular S3 Gateway log. A unit test verifies that a JUL warning reaches a reload4j appender through the bridge and that the JUL console handler is replaced. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-8096 ## How was this patch tested? - `mvn -pl :ozone-s3gateway -Dtest=TestGateway -DskipShade -DskipRecon -DskipDocs test` - `mvn -pl :ozone-s3gateway -DskipShade -DskipRecon -DskipDocs test` - `./hadoop-ozone/dev-support/checks/checkstyle.sh` - `./hadoop-ozone/dev-support/checks/rat.sh` All commands were run with JDK 21. Generated-by: Codex (GPT-5) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
