HttpLoggingBuilderExtensions.UseHttpLogging(IApplicationBuilder) 方法

定义

添加可记录 HTTP 请求和响应的中间件。

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

参数

app
IApplicationBuilder

IApplicationBuilder此方法扩展的实例。

返回

IApplicationBuilder

适用于