(redact m {:keys [redact-value-fn]})
(with-redaction logger)
(with-redaction logger redact-options)
Applys a transformation to a logger to redact sensitive values from log context.
arity-1 version expects a cartus logger to transform arity-2 version expects a cartus logger plus override redact-options
redact-options:
{:redact-value-fn redact-value-fn}
Where redact-value-fn
takes two arguments, the key and value at
a specific point in a data structure during traversal. If the function
returns a value, that value is used as a substitute for the existing value.
Applys a transformation to a logger to redact sensitive values from log context. arity-1 version expects a cartus logger to transform arity-2 version expects a cartus logger plus override redact-options redact-options: `{:redact-value-fn redact-value-fn}` Where `redact-value-fn` takes two arguments, the key and value at a specific point in a data structure during traversal. If the function returns a value, that value is used as a substitute for the existing value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close