 | AspNetExtensionsUseNLog Method (IWebHostBuilder) |
Enable NLog as logging provider for Microsoft Extension Logging.
Namespace:
NLog.Web
Assembly:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 6.0.0+59339f2811712b446adf6dcd8a6bad39ad9f2ba1
Syntaxpublic static IWebHostBuilder UseNLog(
this IWebHostBuilder builder
)
<ExtensionAttribute>
Public Shared Function UseNLog (
builder As IWebHostBuilder
) As IWebHostBuilder
Dim builder As IWebHostBuilder
Dim returnValue As IWebHostBuilder
returnValue = builder.UseNLog()
[<ExtensionAttribute>]
static member UseNLog :
builder : IWebHostBuilder -> IWebHostBuilder
Parameters
- builder
- Type: IWebHostBuilder
Return Value
Type:
IWebHostBuilderUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IWebHostBuilder. 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