GSMLG.Logger.Redactor behaviour (gsmlg_logger v0.1.0)

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 GSMLG.Logger.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)

@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.