serilog-contrib / Serilog.Enrichers.Sensitive

A Serilog LogEvent enricher that masks sensitive data
MIT License
111 stars 23 forks source link

Feature request - Add logPropertyName passed to the Masking operators call #36

Open Dimon24021993 opened 2 months ago

Dimon24021993 commented 2 months ago

While using this extension with carside pattern created libraries we want to hide specific logProperties.

Previously all our carside's logProperties were named in pattern "".

So, when we will be able to filter "our" properties by name pattern - it will much easier to create predefined masking operators per library.

As an example we wanna mask email while sending mesage via SMTP. We can use EmailAddressMaskinjgOperator but it will mask all emails logged in the application, but maybe that some emails are public and can be logged.

It is a more generic solution of issue #29 (Feature request - add customMaskingOperator option to items in maskProperties list.)