WebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) 方法

定義

新增用於設定所提供 ILoggerFactory 的委派。 可能會多次呼叫此項。

public:
 virtual 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
override this.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

IWebHostBuilder

實作

適用於