HttpLoggingServiceExtensions.AddHttpLogging Método

Definição

Sobrecargas

AddHttpLogging(IServiceCollection)

Adiciona componentes para solicitações HTTP de entrada fazendo logon no IServiceCollection.

AddHttpLogging(IServiceCollection, IConfigurationSection)

Adiciona componentes para solicitações HTTP de entrada fazendo logon no IServiceCollection.

AddHttpLogging(IServiceCollection, Action<LoggingOptions>)

Adiciona componentes para solicitações HTTP de entrada fazendo logon no IServiceCollection.

AddHttpLogging(IServiceCollection)

Origem:
HttpLoggingServiceExtensions.cs

Adiciona componentes para solicitações HTTP de entrada fazendo logon no IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddHttpLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpLogging (services As IServiceCollection) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o serviço.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Exceções

services é null.

Aplica-se a

AddHttpLogging(IServiceCollection, IConfigurationSection)

Origem:
HttpLoggingServiceExtensions.cs

Adiciona componentes para solicitações HTTP de entrada fazendo logon no IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddHttpLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpLogging (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o serviço.

section
IConfigurationSection

A seção de configuração à qual associar LoggingOptions .

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Exceções

O services ou section é null.

Aplica-se a

AddHttpLogging(IServiceCollection, Action<LoggingOptions>)

Origem:
HttpLoggingServiceExtensions.cs

Adiciona componentes para solicitações HTTP de entrada fazendo logon no IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Telemetry.LoggingOptions> configure);
static member AddHttpLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Telemetry.LoggingOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpLogging (services As IServiceCollection, configure As Action(Of LoggingOptions)) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar o serviço.

configure
Action<LoggingOptions>

Um Action<T> para configurar o LoggingOptions.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Exceções

O services ou configure é null.

Aplica-se a