Open StrangeW opened 1 year ago
I've already looked at ILogEventEnricher, where I can delete the property, but the message is interpreted afterwards. I get a message like "I run HomeController at {RunDate}" instead of "I run {ControlerName} at {RunDate}".
Hi @StrangeW! A wrapper sink could achieve this (construct a new log event with new message template and selected properties, before forwarding to wrapped sink). LoggerSinkConfiguration.Wrap()
is the starting point to check out. HTH!
Hello
Is your feature request related to a problem? Please describe. I'm not sure if this is a Feature, but I'll need to be able to remove a property from the logs once the message is build.
Describe the solution you'd like In idea, when I run
I would like the message to be
I run HomeController at 06/27/2023 17:45:23
but the RunDate property not to be presentAdditional context I send my logs to applications like ElasticSearch or AppInsight and each property is indexed. I'd like to do away with these fields.