Skip to content

Add a render masked string only method in IPropertyDestructuringAttribute #71

@juchom

Description

@juchom

Would it be possible to add a method to the interface that only return the masked string ?

The main reason behind this is to leverage this attributes in other parts of an application.

For exemple we have this class

public class ResetPassword
{
    [LogMasked]
    public string Password { get; set; }
    [LogMasked]
    public string ConfirmPassword { get; set; }
}

If I log this object with serilog everyhting is fine.

What would be great is to be able to have the rendered string directly in order to use them in custom exception's message for exemple.

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