I have a ASP.NET MVC 6 (beta-4) app.
public void ConfigureServices(IServiceCollection services) { // Logging services.AddLogging(); // ... } publi
The services.AddLogging(); didn't worked for me, so I added these two statements to ConfigureServices:
services.AddLogging();
ConfigureServices
services.AddSingleton(); services.AddSingleton(typeof(ILogger<>), typeof(Logger<>));
Now the DI container is happy and everything works.