HostingHostBuilderExtensions.ConfigureLogging HostingHostBuilderExtensions.ConfigureLogging HostingHostBuilderExtensions.ConfigureLogging Method

Definition

Overloads

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>) ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>) ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

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

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>) ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>) ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

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

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>) ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>) ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

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

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IHostBuilder, configureLogging As Action(Of HostBuilderContext, ILoggingBuilder)) As IHostBuilder

Parameters

hostBuilder
IHostBuilder IHostBuilder IHostBuilder

The IHostBuilder to configure.

configureLogging
Action<HostBuilderContext,ILoggingBuilder>

The delegate that configures the ILoggingBuilder.

Returns

The same instance of the IHostBuilder for chaining.

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>) ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>) ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

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

public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IHostBuilder, configureLogging As Action(Of ILoggingBuilder)) As IHostBuilder

Parameters

hostBuilder
IHostBuilder IHostBuilder IHostBuilder

The IHostBuilder to configure.

configureLogging
Action<ILoggingBuilder>

The delegate that configures the ILoggingBuilder.

Returns

The same instance of the IHostBuilder for chaining.

Applies to