Skip to content

Masking properties with Full Name #40

@kostyrin

Description

@kostyrin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions