Click or drag to resize

ConfigureExtensionsConfigureNLog Method (ILoggerFactory, LoggingConfiguration)

Note: This API is now obsolete.

Apply NLog configuration from config object.

Namespace:  NLog.Extensions.Logging
Assembly:  NLog.Extensions.Logging (in NLog.Extensions.Logging.dll) Version: 5.0.1+b127d73a8dd3e88e56cba56e4d025fce612bbc63
Syntax
[ObsoleteAttribute("Instead assign property NLog.LogManager.Configuration")]
public static LoggingConfiguration ConfigureNLog(
	this ILoggerFactory loggerFactory,
	LoggingConfiguration config
)

Parameters

loggerFactory
Type: ILoggerFactory
config
Type: NLog.ConfigLoggingConfiguration
New NLog config.

Return Value

Type: LoggingConfiguration
Current configuration for chaining.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILoggerFactory. 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