Udostępnij za pośrednictwem


WebHostBuilderExtensions.ConfigureLogging Metoda

Definicja

Przeciążenia

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Dodaje delegata do konfigurowania podanego LoggerFactoryelementu . Może to być wywoływane wiele razy.

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Dodaje delegata do konfigurowania podanego ILoggingBuilderelementu . Może to być wywoływane wiele razy.

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs

Dodaje delegata do konfigurowania podanego LoggerFactoryelementu . Może to być wywoływane wiele razy.

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

Parametry

hostBuilder
IWebHostBuilder

Element do skonfigurowania IWebHostBuilder .

configureLogging
Action<WebHostBuilderContext,ILoggingBuilder>

Delegat, który konfiguruje element LoggerFactory.

Zwraca

Element IWebHostBuilder.

Dotyczy

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs

Dodaje delegata do konfigurowania podanego ILoggingBuilderelementu . Może to być wywoływane wiele razy.

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

Parametry

hostBuilder
IWebHostBuilder

Element do skonfigurowania IWebHostBuilder .

configureLogging
Action<ILoggingBuilder>

Delegat, który konfiguruje element ILoggingBuilder.

Zwraca

Element IWebHostBuilder.

Dotyczy