Comments (2)
@xiz2008shy There is absolutely no need to access org.slf4j.impl.StaticLoggerBinder
when using slf4j-api version 2.0.0 or later. This is not an slf4j issue.
The following links might shed some light onto the matter:
https://www.slf4j.org/codes.html#StaticLoggerBinder
https://www.slf4j.org/faq.html#changesInVersion200
It looks like the problem stems from the fact that you are depending on
org.apache.logging.log4j:log4j-slf4j-impl
and not org.apache.logging.log4j:log4j-slf4j2-impl
. Please note the difference between log4j-slf4j2-impl and log4j-slf4j-impl.
from slf4j.
It turns out that the issue was indeed what you described, and after switching to log4j-slf4j2-impl, the problem was resolved. Thank you so much!
from slf4j.
Related Issues (20)
- MDC + Context Propagation Feature Request HOT 9
- [Feature Request]: Add error method with varargs and Throwable in Logger interface
- `slf4j-api-2.0.11` throws `java.lang.NullPointerException` in Android build HOT 1
- Deprecate `jcl-over-slf4j` for removal HOT 2
- putCloseable should not remove the key from MDC if it was previously set to a different value HOT 1
- JUL bridge and System.Logger are inconsistent on handling of OFF and ALL HOT 9
- Wrong classname when using slf4j inside a wrapper and logging via LoggingEventBuilder HOT 6
- slf4j doesn't work on the docker HOT 4
- load slf4j 2.0.x Exceptions in OSGI , the version number and check mode are incorrect.
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
- [BUG] - JCL-Over-SLF4J Module Definition does not specify the service loader for JPMS applications HOT 1
- Can this Library use in android app ?
- [Feature] 'Strict' startup mode that fails if no or multiple bindings are configured
- Oracle JDK builds include proprietary javadoc HOT 4
- Version 2.0.14 on Maven Central, but not tagged HOT 3
- The slf4j.api artifact version 2.0.14 on Maven central has a broken OSGi MANIFEST.MF HOT 6
- Unexpected new log `SLF4J(I): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider]` HOT 8
- Javadoc of org.slf4j.helpers.Slf4jEnvUtil.slf4jVersion() refers to logback HOT 1
- slf4j-jdk14 adapter: Logger.log's fqcn parameter ignored HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slf4j.