There are extension methods for the older IHostBuilder interface, which uses separate callbacks for different parts of host construction, but .NET is recommending the new IHostApplicationBuilder instead, which has properties available for all of the different host parts (environment, logging, services, etc.). Could we have equivalent UseSerilog methods for the IHostApplicationBuilder interface as well? Unfortunately, there isn't an adapter to convert between them, so we need new methods to retain the existing functionality.
There are extension methods for the older
IHostBuilderinterface, which uses separate callbacks for different parts of host construction, but .NET is recommending the newIHostApplicationBuilderinstead, which has properties available for all of the different host parts (environment, logging, services, etc.). Could we have equivalentUseSerilogmethods for theIHostApplicationBuilderinterface as well? Unfortunately, there isn't an adapter to convert between them, so we need new methods to retain the existing functionality.