View Source LoggerJSON.Redactor behaviour (logger_json v6.2.1)

This module provides a behaviour which allows to redact sensitive information from logs.

Note: redactor will not be applied on Jason.Fragment structs. For more information about encoding and redacting see LoggerJSON.Formatter.RedactorEncoder.encode/2.

Summary

Callbacks

Takes a key and a value and returns a redacted value.

Callbacks

Link to this callback

redact(key, value, opts)

View Source
@callback redact(key :: String.t(), value :: term(), opts :: term()) :: term()

Takes a key and a value and returns a redacted value.

This callback will be applied on key-value pairs, like elements of structs, maps or keyword lists.