-
Notifications
You must be signed in to change notification settings - Fork 30
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
Logging library conflict #44
Comments
Hi Deraen, I'm not experienced in Java and Clojure logging infrastructure. I just picked Do you have any proposals what should I ideally do? Anyways, I think I can make dependency on dirac/src/agent/dirac/agent/impl.clj Lines 136 to 137 in aec8ee5
|
It is a good practice that libraries do not require specific logging implementations, but instead just use some API (log4j-api, slf4-api etc) and leave it to the application to select implementation. For example both slf4j and log4j 2 provide implementations for nearly all the other logging APIs. These "bridges" take care of redirecting messages to selected implementation. All the configuration (filters, appenders) is dependent on the logging implementation. This means that libraries can't define those. Also, log4j 1 has been deprecated in favor of log4j 2: http://logging.apache.org/log4j/1.2/. Which is one reason I wouldn't use it or clj-logging-config. As for solution, Is there any reason Dirac needs to use Java logging at all?
I don't think Dirac needs any of these? In Boot the logging has been implemented by some tens lines of code which just uses |
Thanks for the detailed response. Dirac Agent is a server-side component/app which should log somehow. I thought it is idiomatic in Clojure world to use I'm about to cut a new Dirac 0.7 release today or tomorrow. So I want to fix this for you. I'm going to keep using |
Sounds good. Using |
This removes remaining dependency on dirac.logging from agent. #44
This removes remaining dependency on dirac.logging from nrepl. #44
@Deraen I think this is enough to get rid of the blocking dependency. Would be great if you could clone dirac repo, and do |
@darwin Yep, I can start repl now. |
Cool, thanks for confirmation. Will release a new Dirac version in a few hours. |
Hi,
I'm trying to use Dirac on a project which is using logback and sljf4j. Unfortunately clj-logging-config used by Dirac only supports log4j 1.
Logging dependencies:
Exception:
The text was updated successfully, but these errors were encountered: