hello
hello copied to clipboard
Add hidden_params for logging
This PR adds two options for logging:
-
logger_formatter:json | nativeHow to print request and response in logs.jsonby default -
hidden_params:[atom() | binary() | [atom() | binary()]]Which keys will be hidden. For example we have request like this:
{
"key1": "value",
"key2": {
"key3": "value"
},
"key4": {
"key5": {
"key6": "value"
}
}
}
and we want to hide key1 and key6, we should use hidden_params = [key1, [key4, key5, key6]].
[] by default
Relate to #58