From 48744580075d2a13d0bb78c1b5e33732fcd43992 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Sun, 18 Dec 2016 11:34:09 +0100 Subject: [PATCH] DEPRECATED: per-appender :middleware-fn Why? Not actually much use to this in practice. In particular, the current implementation didn't support influence over :msg_ and :output_ vals through the modification of :vargs. Support could be added, but the impl. would need to be reasonably involved. The feature's utility just doesn't justify the cost necessary to do it right. -- Note: per-appender :ns-whitelist, :ns-blacklist are unchanged. --- README.md | 1 - src/taoensso/timbre.cljx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index af9be7e..bf49ad2 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,6 @@ This is the biggest win over Java logging IMO. :timestamp-opts ; Optional override for inherited {:pattern _ :locale _ :timezone _} (clj only) :ns-whitelist ; Optional, stacks with active config's whitelist :ns-blacklist ; Optional, stacks with active config's blacklist - :middleware-fn ; Optional, stacks with active config's middleware :fn ; (fn [data]) -> side effects, with keys described below An appender's fn takes a single data map with keys: diff --git a/src/taoensso/timbre.cljx b/src/taoensso/timbre.cljx index 86617db..128b0ed 100644 --- a/src/taoensso/timbre.cljx +++ b/src/taoensso/timbre.cljx @@ -70,7 +70,6 @@ :timestamp-opts ; Optional override for inherited {:pattern _ :locale _ :timezone _} (clj only) :ns-whitelist ; Optional, stacks with active config's whitelist :ns-blacklist ; Optional, stacks with active config's blacklist - :middleware-fn ; Optional, stacks with active config's middleware :fn ; (fn [data]) -> side effects, with keys described below An appender's fn takes a single data map with keys: @@ -468,7 +467,7 @@ ?data ; Final data prep before going to appender (if-let [mfn (:middleware-fn appender)] - (mfn data) + (mfn data) ; Deprecated, undocumented data)] (when-let [data ?data] ; Not filtered by middleware