1.2.0 permalink Arrow_down_16x16
  • (enabled? level)
  • (enabled? level log-ns)
Returns true if the specific logging level is enabled. Use of this function
should only be necessary if one needs to execute alternate code paths beyond
whether the log should be written to.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/logging.clj:226 top

(defmacro enabled?
  "Returns true if the specific logging level is enabled.  Use of this function
  should only be necessary if one needs to execute alternate code paths beyond
  whether the log should be written to."
  ([level]
    `(enabled? ~level ~(str *ns*)))
  ([level log-ns]
    `(impl-enabled? (impl-get-log ~log-ns) ~level)))
Vars in clojure.contrib.logging/enabled?: *ns* defmacro str concat list seq
Used in 0 other vars

Comments top

No comments for enabled?. Log in to add a comment.