-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Blacklist for LoggerParameters (Placeholders) #697
Comments
There is no blacklist. However, you can configure MA0139 to a dummy type.
|
Thank you for providing an example to solve this with the current implementation. I am aware that there currently is no blacklist. I also already considered (mis)using the type configuration to solve my situation, but concluded that an explicit implementation would be preferable, which resulted in the feature request. Therefore it still would be great if you could consider adding a blacklist to make the intention explicit |
I think a solution would be to allow the configuration syntax
Also, the diagnostic message should be clearer in this case. Would it solve your issue? |
Yes, this does solve my issue well. Thank you for implementing it |
Story
While using ECS Logging the placeholder
{Message}
was used within the structured logging resulting in the ECS formater replacing the whole message with only the content of the parameter in the ECS log. Therefore it would be good if there was a possibility to declare certain placeholders as black listed.Example of the problem
Expected ECS log message
"The operation for object TestObject in state deleted failed with error: InvalidOperation: Can not update deleted Items"
Actuals ECS log message
"InvalidOperation: Can not update deleted Items"
Feature request
Add a way to configure a blacklist for parameter names to avoid accidentally overwriting reserved fields in ECS logs
The text was updated successfully, but these errors were encountered: