I'm wondering how to add console logging to EF.Core without getting an "obsolete" warning.
Given:
DbContextOptionsBuilder<BenchmarkDbContext> builder = ...;
I tried:
builder.UseLoggerFactory(new LoggerFactory().AddConsole())
And tried:
var factory = new LoggerFactory();
factory.AddProvider(new ConsoleLoggerProvider((a, b) => true, true));
builder.UseLoggerFactory(factory)