Serilog, Microsoft.Extensions.Logging and Autofac

Looks like you might have a mismatched Microsoft.Extensions.Logging.Configuration behind the scenes; try adding:

<PackageReference Include="Microsoft.Extensions.Logging.Configuration" Version="3.0.1" />

To both projects.


! do not believe this is Autofac specific. I am not using autofac, but sreilog. This occurred immediately following updating to 3.0.1 for me.

  • Microsoft.EntityFrameworkCore
  • Microsoft.EntityFrameworkCore.SqlServer
  • Microsoft.EntityFrameworkCore.Tools
  • Microsoft.Extensions.DependencyInjection
  • Microsoft.Extensions.Logging.Debug

Rolling back Microsoft.Extensions.Logging from v 3.0.1 to 3.0.0 git me operational again. Not sure root cause yet, but that should get you back in business.

If you are using EF Core and went from 3.0.0 to 3.0.1 you will need to roll those back as well to 3.0.0.