IWebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) 方法

定义

添加一个委托来配置提供的 ILoggerFactory。 这可多次进行调用。

public:
 Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Action<Microsoft::Extensions::Logging::ILoggerFactory ^> ^ configureLogging);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (Action<Microsoft.Extensions.Logging.ILoggerFactory> configureLogging);
abstract member ConfigureLogging : Action<Microsoft.Extensions.Logging.ILoggerFactory> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function ConfigureLogging (configureLogging As Action(Of ILoggerFactory)) As IWebHostBuilder

参数

configureLogging
Action<ILoggerFactory>

用于配置 ILoggerFactory 的委托。

返回

IWebHostBuilder

适用于