Compartilhar via


HttpLoggingServicesExtensions.AddW3CLogging Método

Definição

Adiciona serviços de registro em log 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

O IServiceCollection para adicionar serviços.

configureOptions
Action<W3CLoggerOptions>

Um delegado para configurar o W3CLoggerOptions.

Retornos

A coleção de serviços original para encadeamento.

Aplica-se a