IWebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Method

Definition

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

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

Parameters

configureLogging
Action<ILoggerFactory>

The delegate that configures the ILoggerFactory.

Returns

The IWebHostBuilder.

Applies to