Share via


HttpLoggingServicesExtensions.AddW3CLogging Method

Definition

Adds W3C Logging services.

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

Parameters

services
IServiceCollection

The IServiceCollection for adding services.

configureOptions
Action<W3CLoggerOptions>

A delegate to configure the W3CLoggerOptions.

Returns

The original service collection for chaining.

Applies to