Partager via


HttpLoggingServicesExtensions.AddW3CLogging Méthode

Définition

Ajoute les services de journalisation W3C.

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

Paramètres

services
IServiceCollection

pour l’ajout IServiceCollection de services.

configureOptions
Action<W3CLoggerOptions>

Délégué utilisé pour configurer W3CLoggerOptions.

Retours

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

S’applique à