serilog-contrib / Serilog.Enrichers.Sensitive

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

Update RegexMaskingOperator.cs #8

Closed j9850s closed 1 year ago

j9850s commented 1 year ago

This to override the MatchEvaluator in a specific Operator to test each value with more complex validaters.

sandermvanvliet commented 1 year ago

@j9850s thank you for your contribution. Based on the discussion we've had via e-mail I've added a new extension point that should provide the options you need. It's been implemented in 382349d41b043cde05f6cd5ee04248ca7ddf067c and will be available on NuGet shortly as version 1.2.0.0

See https://github.com/serilog-contrib/Serilog.Enrichers.Sensitive#extending-to-additional-use-cases for the documented extension points, you'd be interested in ShouldMaskMatch and an example is provided in this test case