KNOX-3189: Update slf4j version to 2.0.13 and log4j2 version to 2.20.0 #1100
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
KNOX-3189 - Updated slf4j version to 2.0.13 and log4j2 version to 2.20.0.
What changes were proposed in this pull request?
As org.apache.logging.log4j:log4j-slf4j-impl (bridge between SLF4J 1.x and log4j2) needs to be replaced with org.apache.logging.log4j:log4j-slf4j2-impl (bridge between SLF4J 2.x and log4j2), the log4j2 version also needed to be updated (the first available version would have been 2.19.0; for log4j2 2.17.1, the bridge artifact for SLF4J2 does not exist, as slf4j2.x did not exist then).
How was this patch tested?
Inspecting maven dependency tree.
org.slf4j:slf4j-api:jar:2.0.13
org.slf4j:jcl-over-slf4j:jar:2.0.13
org.apache.logging.log4j:log4j-slf4j2-impl:jar:2.20.0
Running manual tests with different log4j configurations using KNOX_GATEWAY_LOG_OPTS in knox-env.sh.
Changing log4j2.debug to true, Configuration status levels, root logger and package-level logs.
Note: