Aracılığıyla paylaş


WebHostBuilderExtensions.ConfigureLogging Yöntem

Tanım

Aşırı Yüklemeler

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Sağlanan LoggerFactoryöğesini yapılandırmak için bir temsilci ekler. Bu, birden çok kez çağrılabilir.

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Sağlanan ILoggingBuilderöğesini yapılandırmak için bir temsilci ekler. Bu, birden çok kez çağrılabilir.

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Kaynak:
WebHostBuilderExtensions.cs
Kaynak:
WebHostBuilderExtensions.cs
Kaynak:
WebHostBuilderExtensions.cs

Sağlanan LoggerFactoryöğesini yapılandırmak için bir temsilci ekler. Bu, birden çok kez çağrılabilir.

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

Parametreler

hostBuilder
IWebHostBuilder

IWebHostBuilder yapılandırılır.

configureLogging
Action<WebHostBuilderContext,ILoggingBuilder>

öğesini yapılandıran LoggerFactorytemsilci.

Döndürülenler

IWebHostBuilder.

Şunlara uygulanır

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Kaynak:
WebHostBuilderExtensions.cs
Kaynak:
WebHostBuilderExtensions.cs
Kaynak:
WebHostBuilderExtensions.cs

Sağlanan ILoggingBuilderöğesini yapılandırmak için bir temsilci ekler. Bu, birden çok kez çağrılabilir.

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

Parametreler

hostBuilder
IWebHostBuilder

IWebHostBuilder yapılandırılır.

configureLogging
Action<ILoggingBuilder>

öğesini yapılandıran ILoggingBuildertemsilci.

Döndürülenler

IWebHostBuilder.

Şunlara uygulanır