This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
Add WebHostBuilderContext to ConfigureLogging<T> and remove UseLoggerFactory(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, LoggerFactory> configure) #1015
Closed
Description
ConfigureLogging(Action configureLogging) is missing the WebHostBuilderContext and cannot handle logging configuration that may be dependent on configuration for example.
Remove the overload of UseLoggerFactory since it provides little additional benefit compared to just using UseLoggerFactory(Func<WebHostBuilderContext, ILoggerFactory> createLoggerFactory)
cc @glennc