Condividi tramite


HostingHostBuilderExtensions.ConfigureLogging Metodo

Definizione

Overload

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Aggiunge un delegato per la configurazione dell'oggetto ILoggingBuilder fornito. Può essere chiamato più volte.

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

Aggiunge un delegato per la configurazione dell'oggetto ILoggingBuilder fornito. Può essere chiamato più volte.

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs

Aggiunge un delegato per la configurazione dell'oggetto ILoggingBuilder fornito. Può essere chiamato più volte.

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

Parametri

hostBuilder
IHostBuilder

Oggetto IHostBuilder da configurare.

configureLogging
Action<HostBuilderContext,ILoggingBuilder>

Delegato che configura ILoggingBuilder.

Restituisce

Stessa istanza di IHostBuilder per il concatenamento.

Si applica a

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs

Aggiunge un delegato per la configurazione dell'oggetto ILoggingBuilder fornito. Può essere chiamato più volte.

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

Parametri

hostBuilder
IHostBuilder

Oggetto IHostBuilder da configurare.

configureLogging
Action<ILoggingBuilder>

Delegato che configura ILoggingBuilder.

Restituisce

Stessa istanza di IHostBuilder per il concatenamento.

Si applica a