HttpLoggingBuilderExtensions.UseW3CLogging(IApplicationBuilder) 方法

定义

添加一个中间件,该中间件可以记录 W3C 格式的服务器日志的 HTTP 请求和响应。

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseW3CLogging (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseW3CLogging : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseW3CLogging (app As IApplicationBuilder) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder此方法扩展的实例。

返回

IApplicationBuilder

适用于