-
Notifications
You must be signed in to change notification settings - Fork 104
Closed
Description
Is it intended that the code utilizing scopes provided by IExternalScopeProvider
is modifying the SerilogLoggerProvider
's current scope chain via creating (and not disposing) SerilogLoggerScope
every time a LogEvent
is enriched?
Line 81 in 3c32997
var scope = new SerilogLoggerScope(this, state); |
Does not feel correct at first sight. It captures provider's current source and replaces it by itself, which seems to be intended to reverse on Dispose()
(which is never called). Should it even manipulate the provider's scope chain at all? Shouldn't it just enrich the LogEvent
via scopes from external source without performing any side effects?
Metadata
Metadata
Assignees
Labels
No labels