Logging macros which delegate to a specific logging implementation. At runtime a specific implementation is selected by invoking clojure.tools.logging.impl/find-factory.
The logging implementation can be explicitly provided by using binding or alter-var-root to change the value of logger-factory to another implementation of clojure.tools.logging.impl/LoggerFactory (see also the *-factory functions in the impl namespace).
Logging macros which delegate to a specific logging implementation. At runtime a specific implementation is selected by invoking clojure.tools.logging.impl/find-factory. The logging implementation can be explicitly provided by using binding or alter-var-root to change the value of *logger-factory* to another implementation of clojure.tools.logging.impl/LoggerFactory (see also the *-factory functions in the impl namespace).
Protocols used to allow access to logging implementations. This namespace only need be used by those providing logging implementations to be consumed by the core api.
Protocols used to allow access to logging implementations. This namespace only need be used by those providing logging implementations to be consumed by the core api.
Support for testing whether logging calls are made.
Usage example: (require '[clojure.tools.logging :as log] '[clojure.tools.logging.test :refer [logged? with-log])
(with-log (log/info "Hello World!") (log/error (Exception. "Did a thing") "Error: oops") (logged? 'user :info #"Hello") ; true (logged? 'user :error [Throwable #"thing"] #"Error:") ; true (logged? 'user :debug "Hi")) ; false
Support for testing whether logging calls are made. Usage example: (require '[clojure.tools.logging :as log] '[clojure.tools.logging.test :refer [logged? with-log]) (with-log (log/info "Hello World!") (log/error (Exception. "Did a thing") "Error: oops") (logged? 'user :info #"Hello") ; true (logged? 'user :error [Throwable #"thing"] #"Error:") ; true (logged? 'user :debug "Hi")) ; false
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close