| 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
)
<ObsoleteAttribute("Use NLog.LogManager.Setup().LoadConfigurationFromAppSettings() instead. Marked obsolete with NLog.Web 5.3")>
Public Shared Function ConfigureNLog (
configFileName As String
) As LogFactory
Dim configFileName As String
Dim returnValue As LogFactory
returnValue = NLogBuilder.ConfigureNLog(configFileName)
[<ObsoleteAttribute("Use NLog.LogManager.Setup().LoadConfigurationFromAppSettings() instead. Marked obsolete with NLog.Web 5.3")>]
static member ConfigureNLog :
configFileName : string -> LogFactory
Parameters
- configFileName
- Type: SystemString
Path to NLog configuration file, e.g. nlog.config
Return Value
Type:
LogFactoryLogFactory to get loggers, add events etc
Remarks
It is now recommended to use NLog.LogManager.Setup().LoadConfigurationFromAppSettings()
See Also