Click or drag to resize

ConfigureExtensionsConfigureNLog Method (ILoggerFactory, String)

Note: This API is now obsolete.

Apply NLog configuration from XML config.

Namespace:  NLog.Extensions.Logging
Assembly:  NLog.Extensions.Logging (in NLog.Extensions.Logging.dll) Version: 5.0.1+b127d73a8dd3e88e56cba56e4d025fce612bbc63
Syntax
[ObsoleteAttribute("Instead use NLog.LogManager.Setup().LoadConfigurationFromFile()")]
public static LoggingConfiguration ConfigureNLog(
	this ILoggerFactory loggerFactory,
	string configFileRelativePath
)

Parameters

loggerFactory
Type: ILoggerFactory
configFileRelativePath
Type: SystemString
relative path to NLog configuration file.

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