Bagikan melalui


HttpLoggingServiceExtensions.UseHttpLoggingMiddleware Metode

Definisi

Mendaftarkan middleware pengelogan permintaan HTTP masuk ke dalam 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

Parameter

builder
IApplicationBuilder

Penyusun alur permintaan aplikasi.

Mengembalikan

IApplicationBuilder Sehingga panggilan tambahan dapat dirangkai.

Pengecualian

builderadalah null.

Keterangan

Middleware pengelogan permintaan harus ditempatkan setelah UseRouting(IApplicationBuilder) panggilan.

Berlaku untuk