Partager via


HttpLoggingServicesExtensions.AddHttpLogging Méthode

Définition

Surcharges

AddHttpLogging(IServiceCollection)

Ajoute des services de journalisation HTTP.

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Ajoute des services de journalisation HTTP.

AddHttpLogging(IServiceCollection)

Ajoute des services de journalisation 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

Paramètres

services
IServiceCollection

La IServiceCollection pour l’ajout de services.

Retours

Collection de services d’origine pour le chaînage.

S’applique à

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Source:
HttpLoggingServicesExtensions.cs

Ajoute des services de journalisation 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

Paramètres

services
IServiceCollection

La IServiceCollection pour l’ajout de services.

configureOptions
Action<HttpLoggingOptions>

Délégué pour configurer le HttpLoggingOptions.

Retours

Collection de services d’origine pour le chaînage.

S’applique à