Liking cljdoc? Tell your friends :D

cartus.redaction


default-redaction-optionsclj


redactclj

(redact m {:keys [redact-value-fn]})

with-redactionclj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close