共用方式為


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

適用於