When I do
LoggerFactory
.Create(builder => builder.AddTraceSource(nameof(TestName)).AddConsole())
.CreateLogger(nameof(TestName))
.LogError("oh no");
I kind of expect that "oh no" will be visible in dotnet test --verbosity detailed
output. But it is not. How to obtain ILogger so that its output is visible in test run output?
I'm using Microsoft.Extensions.Logging 3.0.0-preview3.19153.1 and .NET Core SDK 2.1.500.