-
Notifications
You must be signed in to change notification settings - Fork 185
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
Slf4j binding issues #231
Comments
To resolve SLF4J binding issues, follow these steps: Step 1: Ensure Only One SLF4J Binding is Present For example, if you are using Logback, ensure that only slf4j-logback is in the classpath, and remove slf4j-log4j or other bindings. Step 2: Use the Correct SLF4J Version For example:
Step 3: Configure Logging at the Container Level This involves: Adding the necessary SLF4J and Logback JARs to Tomcat's lib directory. Configuring Logback via a logback.xml file placed in Tomcat's conf directory. Step 4: Exclude Conflicting Dependencies For example, in Maven:
Step 5: Use a Parent-First ClassLoader Add the following to your context.xml:
Step 1: Add SLF4J and Logback JARs to Tomcat slf4j-api-2.0.9.jar logback-classic-1.4.11.jar logback-core-1.4.11.jar Step 2: Configure Logback
Step 3: Exclude Conflicting Dependencies in Your Application
Step 4: Configure Tomcat ClassLoader
|
Review slf4j/logback binding issues when running waffle at container layer. See https://github.com/grgrzybek/tomcat-slf4j-logback on how to approach this unless better solution is found
The text was updated successfully, but these errors were encountered: