HttpLoggingServicesExtensions.AddW3CLogging 方法

定义

添加 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

参数

services
IServiceCollection

IServiceCollection用于添加服务的 。

configureOptions
Action<W3CLoggerOptions>

用于配置 W3CLoggerOptions 的委托。

返回

用于链接的原始服务集合。

适用于