Compartilhar via


WebHostBuilderExtensions.ConfigureLogging Método

Definição

Sobrecargas

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

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

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

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

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs

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

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

Parâmetros

hostBuilder
IWebHostBuilder

O IWebHostBuilder a ser configurado.

configureLogging
Action<WebHostBuilderContext,ILoggingBuilder>

O delegado que configura o LoggerFactory.

Retornos

O IWebHostBuilder.

Aplica-se a

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs

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

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

Parâmetros

hostBuilder
IWebHostBuilder

O IWebHostBuilder a ser configurado.

configureLogging
Action<ILoggingBuilder>

O delegado que configura o ILoggingBuilder.

Retornos

O IWebHostBuilder.

Aplica-se a