共用方式為


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

適用於