Skip to content

Which version of org.apache.logging.log4j.log4j-slf4j2-impl supports org.slf4j.slf4j-api version 2.0.0 or more #2475

Answered by ppkarwasz
bbhansali1 asked this question in Q&A
Discussion options

You must be logged in to vote

@bbhansali1,

You are probably talking about the log4j-slf4j-impl artifact (bundle symbolic name org.apache.logging.log4j.slf4j-impl before version 2.21.0 and org.apache.logging.log4j.slf4j.impl since then). That artifact will only support SLF4J 1.x.

SLF4J 2.x does not bring any major (i.e. breaking) changes to the public API, but it has breaking changes for providers, therefore we had to introduce a new artifact log4j-slf4j2-impl to support it. That is the artifact that you want to use.

BTW: I see that from a user perspective having two variants of the same SLF4J-to-Log4j API bridge is confusing. Would it help if we deprecate log4j-slf4j-impl and remove it from the distribution in the nex…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bbhansali1
Comment options

@ppkarwasz
Comment options

@bbhansali1
Comment options

Answer selected by bbhansali1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants