Click or drag to resize

AspNetExtensionsAddNLogWeb Method (IApplicationBuilder)

Note: This API is now obsolete.

Enable NLog Web for ASP.NET Core.

Namespace:  NLog.Web
Assembly:  NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.5.0+9fe9421708749962bac8393d7cec5df976518ccb
Syntax
[ObsoleteAttribute("Use UseNLog() on IHostBuilder / IWebHostBuilder, or AddNLogWeb() on ILoggingBuilder")]
public static void AddNLogWeb(
	this IApplicationBuilder app
)

Parameters

app
Type: IApplicationBuilder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IApplicationBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also