Comments (13)
Any news on this ?
from slf4j-timbre.
org.slf4j/slf4j-api {:mvn/version "2.0.0"}
was released: https://mvnrepository.com/artifact/org.slf4j/slf4j-api
Now the following also depend on it, not just com.zaxxer/HikariCP {:mvn/version "5.0.1"}
:
org.slf4j/log4j-over-slf4j {:mvn/version "2.0.0"}
org.slf4j/jul-to-slf4j {:mvn/version "2.0.0"}
org.slf4j/jcl-over-slf4j {:mvn/version "2.0.0"}
org.slf4j/osgi-over-slf4j {:mvn/version "2.0.0"}
from slf4j-timbre.
from slf4j-timbre.
Am I to understand people are actually using it in the wild these days?
The only dependency of mine that uses it is com.zaxxer/HikariCP
version 5.0.1.
from slf4j-timbre.
@devurandom me too.
I am doing with:
com.zaxxer/HikariCP {:mvn/version "5.0.1" :exclusions [org.slf4j/slf4j-api]}
Not sure if it will cause any error. (finger crossed).
from slf4j-timbre.
Either the 2.0.0 api is different to the 1.8 api, or it is not.
from slf4j-timbre.
In any case, it would be great if slf4j-timbre would support the 2.0.0 api.
from slf4j-timbre.
Thanks for the report, I'll look into it and also the new API
from slf4j-timbre.
thanks @rufoa
I modified the text of the original ticket.
I did do a lot of experiments with dependencies to find out what exactly is going on.
I managed to get to a stage where logging of slf4j was working WITH slf4j 2.0.0 api. I tought the culprit was day8.re-frame/tracing.
But after I wrote the ticket I could not repeat that behavior. Very bizarre
from slf4j-timbre.
I reproduced it. :-)
So I have dependencies whic bring slf4j api 2.0.0. I cannot exclude this dependencies
But I did add org.slf4j/slf4j-api {:mvn/version "1.7.30"} to my deps.edn dependencies.
This forces to use the 1.7.30 version into the classpath, even though other dependencies need a higher version.
This actually works to get slf4j logs to timbre.
However I am scared to use this in production, as I dont know if this libraries will not use functions that are not available in older apis. so I fear they might crash the app.
from slf4j-timbre.
Last time I checked (a while ago, admittedly), Ceki was still making breaking changes to the API in slf4j 2.0 alphas. Am I to understand people are actually using it in the wild these days? If so, I should prioritise adding support for it.
What was frustrating - a recurring theme with slf4j - is that the 2.0 API isn't actually compatible with the 1.7 API, despite Ceki's claims. I worry that this will necessitate two different versions of slf4j-timbre to be maintained in parallel. Hopefully I find a way to avoid this.
from slf4j-timbre.
I'd also appreciate having support for slf4j-api v2.x.x
These are my dependencies right now:
org.slf4j/jcl-over-slf4j {:mvn/version "2.0.5"}
org.slf4j/jul-to-slf4j {:mvn/version "2.0.5"}
org.slf4j/log4j-over-slf4j {:mvn/version "2.0.5"}
and as a workaround I'm overriding the slf4j-api transitive dependency with org.slf4j/slf4j-api {:mvn/version "1.7.36"}
. It seems to work for now but I'd love to get rid of it :)
Happy to help; I can see that the problem is with the binders because they were removed from slf4j-api some time ago (e.g. StaticLoggerBinder) but I'm not sure what's meant to replace it.
from slf4j-timbre.
A lot of AWS libraries are using v2 now as well. We just noticed several apps in production stopped logging and looks like it was related to the upgrade to v2 of slf4j-api.
from slf4j-timbre.
Related Issues (20)
- First line of log does not comply to timbre settings HOT 4
- java exception's stack trace not displayed HOT 4
- Cannot use with jboss owing to nil assertion on arg-array HOT 3
- Does not respect TIMBRE_LEVEL compile time var HOT 3
- Remove Compiled classes from the distributed jar HOT 2
- Use of clojure.string without require HOT 2
- context is not passed to output-fn HOT 2
- Noisy Netty logs show up after adopting this library HOT 15
- Choice of two errors, no errors is not an option HOT 2
- NoClassDefFoundError attempting to log using 0.3.18 HOT 6
- SLF4j actual binding gets unset when importing dgraph4j HOT 3
- can't silence logs in tests HOT 2
- High log volume can cause serious performance degredation HOT 8
- configuration from file HOT 2
- timbre 5.0 support HOT 13
- Could not find artifact HOT 1
- binding with slf4j-api does not work HOT 1
- Default log level does not match default timbre log level HOT 3
- timbre 6.0 support
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-timbre.