Git Product home page Git Product logo

Comments (5)

xetorthio avatar xetorthio commented on August 27, 2024

I think I should read more about the differences, because I like not to have another external dependency.
But if slf4j is better, we should go for it.

from jedis.

johanhaleby avatar johanhaleby commented on August 27, 2024

I understand that you want to keep the dependencies to a minimum. But afaik slf4j is more or less the defacto standard and it's good for end users not to be forced into using a specific logging framework. In our case we need to configure two frameworks because Jedis uses util logging the the rest of the system uses log4j (over slf4j). If Jedis were to use slf4j the end users themselves could hook in the implementation that they like.

from jedis.

xetorthio avatar xetorthio commented on August 27, 2024

Probably it is my error. But I thought that was the idea behind java.util.logging, an API for logging, to be able to use different implementations with no overhead.
So probably 1.6.0 will have slf4j, better logging messages, exception handling, and bunch of other cool and nice features :)

from jedis.

johanhaleby avatar johanhaleby commented on August 27, 2024

I could also be mistaken, I'm not an expert on util logging so don't take my word on this. I didn't know that util logging supported different implementations. Perhaps it's me who should read up on things before posting all over the net :)

from jedis.

johanhaleby avatar johanhaleby commented on August 27, 2024

After a brief check up I don't think it's the case that util logging supports different implementations. To my knowledge it's just a plain logging framework and cannot be used as a facade around other frameworks which slf4j does:

The Simple Logging Facade for Java or (SLF4J) serves as a simple facade or abstraction for various logging frameworks, e.g. java.util.logging, log4j and logback, allowing the end-user to plug in the desired logging framework at deployment time.

from jedis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.