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

timbre 5.0 support #42

Closed
rufoa opened this issue Sep 22, 2020 · 13 comments
Closed

timbre 5.0 support #42

rufoa opened this issue Sep 22, 2020 · 13 comments
Assignees

Comments

@rufoa
Copy link
Collaborator

rufoa commented Sep 22, 2020

https://github.com/ptaoussanis/timbre/releases/tag/v5.0.0

@rufoa rufoa self-assigned this Sep 22, 2020
@jsyrjala
Copy link

Are there any known issues with timbre 5.0.0? At least we are seeing libraries using slf4j to logging at DEBUG level with timbre 5.0.0, when they didn't with timbre 4. with slf4j-timbre 0.3.19

@rufoa
Copy link
Collaborator Author

rufoa commented Sep 29, 2020

Thanks for letting me know. I haven't yet tested slf4j-timbre with timbre 5.0.0. I will investigate this issue ASAP

@rufoa
Copy link
Collaborator Author

rufoa commented Oct 6, 2020

I have successfully reproduced this issue and have identified the root cause. It is a consequence of timbre renaming :level to :min-level in 5.0.0.

When slf4j-timbre is compiled (against timbre 4.10.0), the line (timbre/with-level :info ...) macro-expands to (assoc *config* :level :info).

At runtime, your project (with timbre 5 on the classpath) reads the value of :min-level, which is not set, so defaults to :debug.

I will try to figure out the best way to solve this.

@rufoa
Copy link
Collaborator Author

rufoa commented Oct 6, 2020

@jsyrjala please try 0.3.20!

@jsyrjala
Copy link

jsyrjala commented Oct 7, 2020

I tried 0.3.20 and we are still seeing debug logs with timbre 5.x and not seeing them with timbre 4.x.

@rufoa
Copy link
Collaborator Author

rufoa commented Oct 7, 2020

That is very strange 😕

Please could you give me as much detail as possible about how your project is triggering this behaviour? A small test case would be ideal.

Many thanks

@awb99
Copy link

awb99 commented Jun 28, 2021

I use it with timbre v5, but I get this warning printed in console:

SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions prior to 1.8.
SLF4J: Ignoring binding found at [jar:file:/home/andreas/.m2/repository/com/fzakaria/slf4j-timbre/0.3.21/slf4j-timbre-0.3.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]

@devurandom
Copy link

I use it with timbre v5, but I get this warning printed in console:

SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions prior to 1.8.
SLF4J: Ignoring binding found at [jar:file:/home/andreas/.m2/repository/com/fzakaria/slf4j-timbre/0.3.21/slf4j-timbre-0.3.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]

What you are seeing is probably #45.

@masterbuilder99
Copy link

Any update on updating this library to timbre v5?

@awb99
Copy link

awb99 commented Nov 24, 2021

@rufoa I see you have forked this repo. Is your fork working? I find it very annoying that since timbre 5 this library did break don. It really should be a simple thing... What could be done is to make a different artefact, and then the different timbre versions are easily visible.

@rufoa
Copy link
Collaborator Author

rufoa commented Nov 24, 2021

Hi guys, sorry the lack of timbre 5 support is causing annoyance. I have most of the code ready but have been very short of time recently due to work. I hope to be able to dedicate some time to getting this finished soon, and will announce here when it is ready. Thanks for your continued patience.

@awb99
Copy link

awb99 commented May 22, 2022

Hi! Any news in this?

@rufoa
Copy link
Collaborator Author

rufoa commented May 23, 2022

@awb99 yes! Please try out the new snapshot and let me know if it works for you.

I've not yet finished my overhaul of the integration tests, which should give me more confidence that everything works with different library versions and configurations. But I can't keep you waiting for that!!

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

5 participants