generateme / Feb 24 2020
Remix of Clojure by Nextjournal
Logging test
Logging libraries and Nextjournal (the backend doesn't matter)
{:deps
{org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/tools.logging {:mvn/version "0.6.0"}
org.slf4j/slf4j-simple {:mvn/version "1.7.30"}}}
deps.edn
Extensible Data Notation
(require [clojure.tools.logging :as l]
[clojure.tools.logging.impl :as li])
1.6s
Clojure
(li/name l/*logger-factory*)
0.1s
Clojure
"org.slf4j"
(l/info ::some)
0.1s
Clojure
(l/enabled? :info)
0.1s
Clojure
true
(l/enabled? :error)
0.1s
Clojure
true
(println ::some)
0.5s
Clojure
Around 12k log messages causes hanging a cell. Run below cell again to hang a runner.
(def how-many-log-events 10000)
(dotimes [x how-many-log-events]
(l/info "Some text to the log")
(when (zero? (mod x 1000)) (println x)))
2.3s
Clojure