HttpLoggingServicesExtensions.AddHttpLogging Método

Definición

Sobrecargas

AddHttpLogging(IServiceCollection)

Agrega servicios de registro HTTP.

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Agrega servicios de registro HTTP.

AddHttpLogging(IServiceCollection)

Agrega servicios de registro 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

El IServiceCollection para agregar servicios.

Devoluciones

Colección de servicios original para encadenar.

Se aplica a

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Source:
HttpLoggingServicesExtensions.cs

Agrega servicios de registro 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

El IServiceCollection para agregar servicios.

configureOptions
Action<HttpLoggingOptions>

Delegado para configurar el HttpLoggingOptions.

Devoluciones

Colección de servicios original para encadenar.

Se aplica a