Property in LogEvent should not be overridden by scope
fixes #271
NOTE:
ExternalScopeProvider.ForEachScope processes scopes from outer to inner, which is the opposite of Serilog's scope traversal order. This fix implements ForEachScopeReversed and passes update: false to the method EnrichWithStateAndCreateScopeItem to ensure consistent behavior matching Serilog's expectations.
Thanks for sending this. Because the method is called for every log statement, I'm not sure the added cost of creating, populating, and iterating through an additional List will be acceptable. We might need to investigate alternative approaches to #289 instead 🤔
Thanks for sending this. Because the method is called for every log statement, I'm not sure the added cost of creating, populating, and iterating through an additional
Listwill be acceptable. We might need to investigate alternative approaches to #289 instead 🤔
Thanks for reviewing the PR! I'm glad you brought this up - I've been exploring solutions but haven't found a better approach yet. By the way, I noticed you referenced #289, but I don't seem to have access to that issue. Is it a private issue perhaps?
Sorry! The PR I meant to refer to is #269.