Click or drag to resize

NLogBuilderConfigureNLog Method (String)

Note: This API is now obsolete.

Configure NLog from XML config.

Namespace:  NLog.Web
Assembly:  NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax
[ObsoleteAttribute("Use NLog.LogManager.Setup().LoadConfigurationFromAppSettings() instead. Marked obsolete with NLog.Web 5.3")]
public static LogFactory ConfigureNLog(
	string configFileName
)

Parameters

configFileName
Type: SystemString
Path to NLog configuration file, e.g. nlog.config

Return Value

Type: LogFactory
LogFactory to get loggers, add events etc
Remarks
It is now recommended to use NLog.LogManager.Setup().LoadConfigurationFromAppSettings()
See Also