Created
October 7, 2016 16:20
-
-
Save stephanebruckert/3b9a958dfd446007a474b9a0897aebce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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