WebHostBuilderExtensions.ConfigureLogging Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
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.