Click or drag to resize

NLogBuilderConfigureNLog Method (LoggingConfiguration)

Note: This API is now obsolete.

Configure NLog from API

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(
	LoggingConfiguration configuration
)

Parameters

configuration
Type: NLog.ConfigLoggingConfiguration
Config for NLog

Return Value

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