This is directly related to the question Personally Identifiable Information (PII), Traces, and MessageLogging. I've tried the solution in the answer but here are the problems I found.
- It doesn't remove the PII (Personal Identifiable Information) from the response, only in the request.
- It doesn't support MessageContracts / MessageBodyMember.
It might be just that the code just really doesn't cover this or I'm missing some configuration. If anyone has a solid solution to making sure that the traces in the svclog doesn't contain fields that I mark as PII, whether they are datacontract or messagecontract?
Here is the updated code from the answer in the related post https://github.com/janmchan/PiiFilter/