Skip to main content

with-logs

macro

clojure.tools.logging/with-logs

(with-logs [logger-ns & body] [[logger-ns out-level err-level] & body])
Evaluates exprs in a context in which *out* and *err* write to the log. The specified logger-ns value will be used to namespace all log entries. By default *out* and *err* write to :info and :error, respectively.

No examples yet. Be the first to add one!

Categories