Udostępnij za pośrednictwem


HostingHostBuilderExtensions.ConfigureLogging Metoda

Definicja

Przeciążenia

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

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

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

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

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureLogging(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
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

Parametry

hostBuilder
IHostBuilder

Element do skonfigurowania IHostBuilder .

configureLogging
Action<HostBuilderContext,ILoggingBuilder>

Delegat, który konfiguruje element ILoggingBuilder.

Zwraca

To samo wystąpienie IHostBuilder elementu do tworzenia łańcuchów.

Dotyczy

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureLogging(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
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

Parametry

hostBuilder
IHostBuilder

Element do skonfigurowania IHostBuilder .

configureLogging
Action<ILoggingBuilder>

Delegat, który konfiguruje element ILoggingBuilder.

Zwraca

To samo wystąpienie IHostBuilder elementu do tworzenia łańcuchów.

Dotyczy