Comments (3)
You may refer: https://www.slf4j.org/faq.html#changesInVersion200
from slf4j.
Biggest issue is if you are using spring boot 2. Its possible to turn off spring boots logging and use 2 though but its not straight forward and spring hasn't exactly helped there. You can find that info in their issues if you dig deep enough.
What I dislike in general was fact that slf4j went major to 2.x while logback was left minor on 1.3 (javax namespace) and 1.4 (jakarta namespace). That part is the most problematic because the bots (renovate, synk, dependabot, others) treat 1.3 and 1.4 the same by default and suggest premature upgrades to 1.4.x. The only saving grace if any was the level of CVEs on logback this week that caused the bots to send targeted releases but those were already deemed buggy and not complete. So a lot of manual work :(
Should you upgrade? Yes, it took years if I recall to get here. So long as you don't have spring boot consideration, there is no question just upgrade. As long as your configuration was not outrageous on requirements, its basically drop in place. In fact, for the some 2k repos I support, I don't recall any considerations outside of spring boot. And even there we upgraded some of those to latest on 2.7.x with various solutions found within spring boot issues.
from slf4j.
In addition to the link @KengoTODA mentioned, there is also Are SLF4J versions backward compatible? FAQ entry which you might want to read.
from slf4j.
Related Issues (20)
- MDC Usage regression HOT 10
- [question] How do you pronounce SLF4J?
- Message formatting with last argument being Throwable
- Explicit provider fails when used with module system HOT 4
- Some links from FAQ document don't work. HOT 1
- MavenGate (CVE)
- 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
- 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
- org.slf4j.LoggerFactory (in module org.slf4j) cannot access class org.slf4j.impl.StaticLoggerBinder (JPMS APPLICATION) HOT 2
- Can this Library use in android app ?
- [Feature] 'Strict' startup mode that fails if no or multiple bindings are configured
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.