HttpLoggingServicesExtensions.AddHttpLogging Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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>)
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.