WebHostBuilderExtensions.ConfigureLogging WebHostBuilderExtensions.ConfigureLogging WebHostBuilderExtensions.ConfigureLogging WebHostBuilderExtensions.ConfigureLogging Method

Definition

Overloads

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

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

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

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

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IWebHostBuilder, configureLogging As Action(Of WebHostBuilderContext, ILoggingBuilder)) As IWebHostBuilder

Parameters

configureLogging
Action<WebHostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder>

The delegate that configures the LoggerFactory.

Returns

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IWebHostBuilder, configureLogging As Action(Of ILoggingBuilder)) As IWebHostBuilder

Parameters

configureLogging
Action<Microsoft.Extensions.Logging.ILoggingBuilder>

The delegate that configures the Microsoft.Extensions.Logging.ILoggingBuilder.

Returns

Applies to