Skip to content

Instantly share code, notes, and snippets.

@stephanebruckert
Created October 7, 2016 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephanebruckert/3b9a958dfd446007a474b9a0897aebce to your computer and use it in GitHub Desktop.
Save stephanebruckert/3b9a958dfd446007a474b9a0897aebce to your computer and use it in GitHub Desktop.
(ns unit.sdk-helpers.log-test
(:require [midje.sweet :refer :all]
[taoensso.timbre :as timbre]))
(defn my-output-fn [data]
(clojure.pprint/pprint "my-output-fn was called")
(timbre/default-output-fn data))
(defn init [level]
(timbre/merge-config! {:output-fn my-output-fn})
(timbre/set-level! level))
(fact "Check Timbre output"
(timbre/info "Hello") => nil
(timbre/info "Hello") => nil
(provided
(timbre/default-output-fn anything) => irrelevant :times 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment