java - Suppress clojure logging in Eclipse? -
i'm working 3rd party library implemented in clojure logs messages using clojure.tools.logging.
i want suppress these messages in eclipse , have tried following suggestion no avail.
any (hacky) solutions appreciated.
it sounds clojure.tools.logging using different underlying logging implementation rest of application?
for example if application using java.util.logging, have stray log4j library in classpath, clojure.tools.logging detect log4j , therefore not react logging config changes making.
the logic detecting underlying logging implementation here:
https://github.com/clojure/tools.logging/blob/master/src/main/clojure/clojure/tools/logging/impl.clj
specifically:
(defn find-factory "returns first non-nil value slf4j-factory, cl-factory, log4j-factory, , jul-factory." [] (or (slf4j-factory) (cl-factory) (log4j-factory) (jul-factory) (throw ; should never happen in 1.5+ (runtimeexception. "valid logging implementation not found."))))
it helpful run mvn dependency:tree
or lein deps :tree
see logging dependencies on classpath.
Comments
Post a Comment