HttpLoggingServicesExtensions.AddHttpLogging Método

Definição

Sobrecargas

AddHttpLogging(IServiceCollection)

Adiciona serviços de log HTTP.

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Adiciona serviços de log HTTP.

AddHttpLogging(IServiceCollection)

Adiciona serviços de log HTTP.

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 para adicionar serviços.

Retornos

A coleção de serviços original para encadeamento.

Aplica-se a

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Origem:
HttpLoggingServicesExtensions.cs

Adiciona serviços de log HTTP.

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

Parâmetros

services
IServiceCollection

O IServiceCollection para adicionar serviços.

configureOptions
Action<HttpLoggingOptions>

Um delegado para configurar o HttpLoggingOptions.

Retornos

A coleção de serviços original para encadeamento.

Aplica-se a