1.2.0 permalink Arrow_down_16x16

log-uncapture!

clojure.contrib.logging

  • (log-uncapture!)
Restores System.out and System.err to their original values.

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:281 top

(defn log-uncapture!
  "Restores System.out and System.err to their original values."
  []
  (dosync
    (when-let [{old-out :out old-err :err} @*old-std-streams*]
      (ref-set *old-std-streams* nil)
      (System/setOut old-out)
      (System/setErr old-err))))
Vars in clojure.contrib.logging/log-uncapture!: defn dosync ref-set when-let
Used in 0 other vars

Comments top

No comments for log-uncapture!. Log in to add a comment.