HostingHostBuilderExtensions.ConfigureLogging Método

Definição

Sobrecargas

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Adiciona um delegado para configurar o ILoggingBuilder fornecido. Isso pode ser chamado várias vezes.

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

Adiciona um delegado para configurar o ILoggingBuilder fornecido. Isso pode ser chamado várias vezes.

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs

Adiciona um delegado para configurar o ILoggingBuilder fornecido. Isso pode ser chamado várias vezes.

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

Parâmetros

hostBuilder
IHostBuilder

O IHostBuilder a ser configurado.

configureLogging
Action<HostBuilderContext,ILoggingBuilder>

O delegado que configura o ILoggingBuilder.

Retornos

A mesma instância do IHostBuilder para encadeamento.

Aplica-se a

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs

Adiciona um delegado para configurar o ILoggingBuilder fornecido. Isso pode ser chamado várias vezes.

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

Parâmetros

hostBuilder
IHostBuilder

O IHostBuilder a ser configurado.

configureLogging
Action<ILoggingBuilder>

O delegado que configura o ILoggingBuilder.

Retornos

A mesma instância do IHostBuilder para encadeamento.

Aplica-se a