(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |