Skip to content
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

Incompatibility with slf4j 2.0.x #1667

Open
bmaizel opened this issue Feb 14, 2023 · 1 comment
Open

Incompatibility with slf4j 2.0.x #1667

bmaizel opened this issue Feb 14, 2023 · 1 comment

Comments

@bmaizel
Copy link

bmaizel commented Feb 14, 2023

Ratpack attempts to detect slf4j configuration problems.
The code is in the ratpack.core.server.internal.Slf4jNoBindingDetector .
If the check fails, Ratpack writes warning messages to stderr and "Ratpack started..." message to stdout.
Unfortunately, the check always erroneously fails with slf4j version 2.0.x and compatible bindings. LoggerFactory class will no longer search for the StaticLoggerBinder class on the class path

I belive, ratpack should not attempt to detect slf4j configuration problems by itself and should rather rely on LoggerFactory to do that.

@bmaizel
Copy link
Author

bmaizel commented Feb 14, 2023

As a temporary workaround, I have created a dummy org.slf4j.impl.StaticLoggerBinder class in the app.

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

1 participant