Partager via


HttpLoggingServiceExtensions.AddHttpLogging Méthode

Définition

Surcharges

AddHttpLogging(IServiceCollection)

Ajoute des composants pour la connexion des requêtes HTTP entrantes dans IServiceCollection.

AddHttpLogging(IServiceCollection, IConfigurationSection)

Ajoute des composants pour la connexion des requêtes HTTP entrantes dans IServiceCollection.

AddHttpLogging(IServiceCollection, Action<LoggingOptions>)

Ajoute des composants pour la connexion des requêtes HTTP entrantes dans IServiceCollection.

AddHttpLogging(IServiceCollection)

Source:
HttpLoggingServiceExtensions.cs

Ajoute des composants pour la connexion des requêtes HTTP entrantes dans 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter le service.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

Exceptions

services a la valeur null.

S’applique à

AddHttpLogging(IServiceCollection, IConfigurationSection)

Source:
HttpLoggingServiceExtensions.cs

Ajoute des composants pour la connexion des requêtes HTTP entrantes dans 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter le service.

section
IConfigurationSection

Section de configuration à laquelle lier LoggingOptions .

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

Exceptions

services ou section a la valeur null.

S’applique à

AddHttpLogging(IServiceCollection, Action<LoggingOptions>)

Source:
HttpLoggingServiceExtensions.cs

Ajoute des composants pour la connexion des requêtes HTTP entrantes dans 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter le service.

configure
Action<LoggingOptions>

Action<T> permettant de configurer le LoggingOptions.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

Exceptions

services ou configure a la valeur null.

S’applique à