Skip to content

HDDS-16232. Document how to enable Jersey debug logs in S3 Gateway - #533

Merged
jojochuang merged 1 commit into
apache:masterfrom
F64116045:HDDS-16232
Aug 20, 2026
Merged

HDDS-16232. Document how to enable Jersey debug logs in S3 Gateway#533
jojochuang merged 1 commit into
apache:masterfrom
F64116045:HDDS-16232

Conversation

@F64116045

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

HDDS-8096 (apache/ozone#11005) redirects Jersey logs from JUL to SLF4J so they are written to the S3 Gateway log file.

JUL checks the log level before a record reaches SLF4JBridgeHandler. Therefore, setting only log4j.logger.org.glassfish.jersey=DEBUG does not enable Jersey debug logs.

This change documents how to set the Jersey JUL logger to FINE, enable its DEBUG level in log4j, and load the JUL configuration when starting S3 Gateway.

What is the link to the Apache Jira?

https://issues.apache.org/jira/browse/HDDS-16232

How was this patch tested?

  • pnpm exec markdownlint docs/05-administrator-guide/02-configuration/02-logging/01-application-logs.md
  • pnpm build
  • Verified in a separate JVM that a Jersey JUL FINE record reaches reload4j only when JUL is set to FINE and log4j is set to DEBUG.

@jojochuang
jojochuang marked this pull request as ready for review August 20, 2026 16:31
@jojochuang
jojochuang merged commit f6e4f15 into apache:master Aug 20, 2026
8 checks passed
@jojochuang

Copy link
Copy Markdown
Contributor

Merged. Thanks @F64116045

@F64116045

Copy link
Copy Markdown
Contributor Author

Thanks @jojochuang for the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants