View Source LoggerJSON.Formatter.RedactorEncoder (logger_json v6.2.1)
Summary
Functions
Takes a term and makes sure that it can be encoded by Jason.encode!/1 without errors and without leaking sensitive information.
Types
Functions
Takes a term and makes sure that it can be encoded by Jason.encode!/1 without errors and without leaking sensitive information.
Encoding rules
Type | Encoding | Redaction |
---|---|---|
boolean() | unchanged | unchanged |
map() | unchanged | values are redacted |
list() | unchanged | unchanged |
tuple() | converted to list | unchanged |
binary() | unchanged if printable, otherwise using inspect/2 | unchanged |
number() | unchanged | unchanged |
atom() | unchanged | unchanged |
struct() | converted to map | values are redacted |
keyword() | converted to map | values are redacted |
%Jason.Fragment{} | unchanged | unchanged |
everything else | using inspect/2 | unchanged |