共用方式為


HttpLoggingServiceExtensions.UseHttpLoggingMiddleware 方法

定義

將傳入的 HTTP 要求記錄中介軟體註冊到 IApplicationBuilder

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

參數

builder
IApplicationBuilder

應用程式的要求管線產生器。

傳回

IApplicationBuilder,以便鏈結其他呼叫。

例外狀況

buildernull

備註

要求記錄中介軟體應在呼叫之後 UseRouting(IApplicationBuilder) 放置。

適用於