Serilog.Enrichers.Sensitive icon indicating copy to clipboard operation
Serilog.Enrichers.Sensitive copied to clipboard

Masking properties with Full Name

Open kostyrin opened this issue 5 months ago • 3 comments

Is it possible to use MaskingProperties with full name. I mean with namespace like Project1.Class1.Property1. like

var logger = new LoggerConfiguration()
    .Enrich.WithSensitiveDataMasking(options => options.MaskProperties.Add("Project1.Class1.Property1"))
    .WriteTo.Console()
    .CreateLogger();

We have different classes with same property names. We would like to mask properties in curtain classes. Thank for any advice.

kostyrin avatar Sep 06 '24 16:09 kostyrin