Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add ability to suppress logging of individual properties #15

Open
chris-peterson opened this issue Jun 21, 2017 · 1 comment
Open

Comments

@chris-peterson
Copy link
Owner

chris-peterson commented Jun 21, 2017

When using IncludeStructure, it would be nice to be able to deny certain fields from getting logged. e.g.

class Customer
{
   public string Name { get; set; }
   
   [NeverLog]
   public CreditCardNumber { get; set; }
}

Use "duck" typing to allow client to define the attribute in their own code base.

@chris-peterson
Copy link
Owner Author

chris-peterson commented Oct 25, 2017

Or, add a hook to Behavior, e.g. AutoRemoveFieldsNamed(f => f.Contains("CreditCard"))

@chris-peterson chris-peterson changed the title Add ability to suppress logging of individual properties Feature: Add ability to suppress logging of individual properties Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant