Using Microsoft.Extensions.Compliance.Redaction #5995
Matthew-Wise
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I wasn't sure how to categorize this so general it is. so I am trying to use Microsoft.Extensions.Compliance.Redaction along with LoggerMessage - https://learn.microsoft.com/en-us/dotnet/core/extensions/high-performance-logging
However when using attributes on my models to redact log properties, they are completely missing when looking at my logs instead of been encrypted using the HMAC redactor, the eraser one also removes the property label and does not log a blank message but that's much of a muchness.
I am not sure where the bug lies? To fix it but I do have a workaround for now a RedactionProcessor based of the MyRedactionProcessor in this code base (happy to PR this if you would like it)
My current work around is a RedactionLogProcessor, below. I also have a very similar Trace version.
Thanks
Matt
Beta Was this translation helpful? Give feedback.
All reactions