Open surik opened 9 years ago
This PR adds two options for logging:
1) logger_formatter: json | native How to print request and response in logs. json by default
logger_formatter
json | native
json
2) hidden_params: [atom() | binary() | [atom() | binary()]] Which keys will be hidden. For example we have request like this:
hidden_params
[atom() | binary() | [atom() | binary()]]
{ "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
key1
key6
hidden_params = [key1, [key4, key5, key6]]
[]
Relate to #58
This PR adds two options for logging:
1)
logger_formatter
:json | native
How to print request and response in logs.json
by default2)
hidden_params
:[atom() | binary() | [atom() | binary()]]
Which keys will be hidden. For example we have request like this:and we want to hide
key1
andkey6
, we should usehidden_params = [key1, [key4, key5, key6]]
.[]
by defaultRelate to #58