serilog-extensions-logging icon indicating copy to clipboard operation
serilog-extensions-logging copied to clipboard

Property in LogEvent should not be overridden by scope

Open huoshan12345 opened this issue 7 months ago • 3 comments
trafficstars

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.

huoshan12345 avatar Apr 01 '25 14:04 huoshan12345