Skip to content

Log4j-slf4j-ipml artifact got moved to log4j-slf4j2-impl #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Icetea1991 opened this issue Sep 8, 2023 · 3 comments
Open

Log4j-slf4j-ipml artifact got moved to log4j-slf4j2-impl #163

Icetea1991 opened this issue Sep 8, 2023 · 3 comments

Comments

@Icetea1991
Copy link

Hello colleagues,

in the newest version 3.7.1 of cf-java-logging-support-log4j2 you still refer to the

	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-slf4j-impl</artifactId>
		<version>${log4j2.version}</version>
		<scope>provided</scope>
	</dependency>

However, if you go here:
https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl

there is a warning that the artifact got moved to:
https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j2-impl

org.apache.logging.log4j log4j-slf4j2-impl 2.20.0 test

Kind regards
Hendrik

@KarstenSchnitter
Copy link
Contributor

KarstenSchnitter commented Sep 11, 2023

Hi Hendrik,

Thanks for opening the issue. This library currently has issues with SLF4J 2.x, that needs to be fixed before upgrading. It is currently using SLF4J 1.7.36. I am not sure about the upgrade, seeing the conflicts with the current implementation. Do you have an idea on the impact for application developers when this change will be merged to the library?

Best Regards,
Karsten

@Icetea1991
Copy link
Author

Hi, yes you are right about that. As a workaround I had to set the

org.slf4j
slf4j-api
2.0.9

because otherwise it does not work. The StaticLoggerBinder class is not available in the version before 2.x.x.

So yeah, either you wait until they fix it in the new version or you go via the manual workaround.

@KarstenSchnitter
Copy link
Contributor

I will do some tests on the compatibility between the two versions of SLF4J and then comment on how to proceed with this issue.

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

No branches or pull requests

2 participants