The semantics of ILogger.BeginScope()

added by DotNetKicks
11/16/2016 5:49:15 AM

2 Kicks, 427 Views

Microsoft.Extensions.Logging's ILogger adds context to log events with BeginScope(): Each call to BeginScope() creates another level of nesting, so that events produced within the scope can be tagged with information about where they came from. Nice and intuitive. Here's the challenge for implementers: BeginScope() is generic over TState.


0 comments