WebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Method

Definition

Adds a delegate for configuring the provided ILoggerFactory. This may be called multiple times.

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

Parameters

configureLogging
Action<ILoggerFactory>

The delegate that configures the ILoggerFactory.

Returns

IWebHostBuilder

The IWebHostBuilder.

Implements

Applies to