Skip to content

[Hotfix] Change log4j impl dependency to log4j-slf4j2-impl - #4336

Open
zhoujinsong wants to merge 5 commits into
apache:masterfrom
zhoujinsong:fix-log4j-dependencies
Open

[Hotfix] Change log4j impl dependency to log4j-slf4j2-impl#4336
zhoujinsong wants to merge 5 commits into
apache:masterfrom
zhoujinsong:fix-log4j-dependencies

Conversation

@zhoujinsong

Copy link
Copy Markdown
Contributor

Why are the changes needed?

PR #4046 upgraded slf4j-api from 1.7.x to 2.0.17, but did not update the Log4j2 binding accordingly. log4j-slf4j-impl uses the StaticLoggerBinder mechanism, which is only compatible with SLF4J 1.7.x. SLF4J 2.x uses ServiceLoader to discover providers, and since log4j-slf4j-impl does not register as a SLF4JServiceProvider, SLF4J falls back to a NOP (no-operation) logger.

This PR changes the impl to log4j-slf4j2-impl to match the new slf4j-api.

Brief change log

  • As title

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@github-actions github-actions Bot added module:ams-server Ams server module module:ams-optimizer AMS optimizer module type:build labels Aug 25, 2026
@github-actions github-actions Bot added the module:mixed-trino trino module for Mixed Format label Aug 25, 2026
@github-actions github-actions Bot added the module:mixed-spark Spark module for Mixed Format label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-optimizer AMS optimizer module module:ams-server Ams server module module:mixed-spark Spark module for Mixed Format module:mixed-trino trino module for Mixed Format type:build type:infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant