Skip to content
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
@JunTaoLuo

Description

@JunTaoLuo

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions