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) 应放置请求日志记录中间件。

适用于