When producing a log entry from within a scope, as in this sample
var loggerFactory = TestLoggerFactory.Create();
var logger = loggerFactory.CreateLogger<Sample>();
using (logger.BeginScope(new Dictionary<string, object>() { { "property0", "value0" } }))
{
logger.LogInformation("message {property2}", "value2");
}
I expected loggerFactory .Sink.LogEntries[0].Properties to contain both properties, but found only propertiy2. Whereas property0 only seems to be captured in loggerFactory.Sink.Scopes[0].Properties. Is this intentional?
This article seems to indicate that this is not the behavior of the "real" implementation.