 | ConfigureExtensionsAddNLog Method (ILoggingBuilder, NLogProviderOptions) |
Enable NLog as logging provider for Microsoft Extension Logging
Namespace:
NLog.Extensions.Logging
Assembly:
NLog.Extensions.Logging (in NLog.Extensions.Logging.dll) Version: 5.0.1+b127d73a8dd3e88e56cba56e4d025fce612bbc63
Syntaxpublic static ILoggingBuilder AddNLog(
this ILoggingBuilder factory,
NLogProviderOptions options
)
<ExtensionAttribute>
Public Shared Function AddNLog (
factory As ILoggingBuilder,
options As NLogProviderOptions
) As ILoggingBuilder
Dim factory As ILoggingBuilder
Dim options As NLogProviderOptions
Dim returnValue As ILoggingBuilder
returnValue = factory.AddNLog(options)
[<ExtensionAttribute>]
static member AddNLog :
factory : ILoggingBuilder *
options : NLogProviderOptions -> ILoggingBuilder
Parameters
- factory
- Type: ILoggingBuilder
- options
- Type: NLog.Extensions.LoggingNLogProviderOptions
NLog Logging Provider options
Return Value
Type:
ILoggingBuilderILoggingBuilder for chaining
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ILoggingBuilder. 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