Compartir a través de


HttpLoggingServicesExtensions.AddW3CLogging Método

Definición

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

Parámetros

services
IServiceCollection

para IServiceCollection agregar servicios.

configureOptions
Action<W3CLoggerOptions>

Un delegado para configurar la instancia de W3CLoggerOptions.

Devoluciones

Colección de servicios original para encadenar.

Se aplica a