Permalink
Browse files

Put slf4j ahead of commons-logging.

  • Loading branch information...
1 parent 96ad25a commit ec33ac5f794e996add825a8b60eb49720ad384bb Alexander Taggart committed Sep 1, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 README.md
  2. +6 −6 src/main/clojure/clojure/tools/logging.clj
View
@@ -1,6 +1,6 @@
# Logging
-Logging macros which delegate to a specific logging implementation. At runtime a specific implementation is selected from, in order, Apache commons-logging, slf4j, log4j, and finally java.util.logging.
+Logging macros which delegate to a specific logging implementation. At runtime a specific implementation is selected from, in order, slf4j, Apache commons-logging, log4j, and finally java.util.logging.
Logging levels are specified by clojure keywords corresponding to the values used in log4j and commons-logging:
@@ -12,8 +12,8 @@
;; remove this notice, or any other, from this software.
(ns ^{:author "Alex Taggart"
:doc "Logging macros which delegate to a specific logging implementation. At
- runtime a specific implementation is selected from, in order, Apache
- commons-logging, slf4j, log4j, and finally java.util.logging."}
+ runtime a specific implementation is selected from, in order, slf4j,
+ Apache commons-logging, slf4j, log4j, and finally java.util.logging."}
clojure.tools.logging
[:use
[clojure.string :only [trim-newline]]
@@ -273,8 +273,8 @@
`(logf :fatal ~@args))
(defn- find-factory []
- (or (cl/load-factory)
- (slf4j/load-factory)
+ (or (slf4j/load-factory)
+ (cl/load-factory)
(log4j/load-factory)
(jul/load-factory)
(throw ; this should never happen in 1.5+
@@ -284,8 +284,8 @@
(def ^{:doc
"An instance satisfying the LoggerFactory protocol. Used internally when
needing to obtain an instance satisfying the Logger protocol. Defaults to the
- first LoggerFactory found that is available from commons-logging,
- slf4j-logging, log4j-logging, or java-util-logging. Can be rebound to provide
+ first LoggerFactory found that is available from slf4j-logging,
+ commons-logging, log4j-logging, or java-util-logging. Can be rebound to provide
alternate logging implementations" :dynamic true}
*logger-factory*
(find-factory))

0 comments on commit ec33ac5

Please sign in to comment.