mirror of https://github.com/status-im/timbre.git
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.
This commit is contained in:
parent
b1246da6e4
commit
4874458007
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue