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