Click or drag to resize

AspNetExtensions Methods

The AspNetExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddNLog(ILoggingBuilder, LoggingConfiguration)
Enable NLog as logging provider for Microsoft Extension Logging, and explicit load NLog LoggingConfiguration
Public methodStatic memberAddNLog(ILoggingBuilder, FuncIServiceProvider, LogFactory)
Enable NLog as logging provider for Microsoft Extension Logging, and provide isolated LogFactory
Public methodStatic memberAddNLog(ILoggingBuilder, String)
Enable NLog as logging provider for Microsoft Extension Logging, and explicit load NLog.config from path
Public methodStatic memberAddNLog(ILoggingBuilder, LoggingConfiguration, NLogAspNetCoreOptions)
Enable NLog as logging provider for Microsoft Extension Logging, and explicit load NLog LoggingConfiguration
Public methodStatic memberAddNLogWeb(IApplicationBuilder) Obsolete.
Enable NLog Web for ASP.NET Core.
Public methodStatic memberAddNLogWeb(ILoggingBuilder)
Enable NLog as logging provider for Microsoft Extension Logging
Public methodStatic memberAddNLogWeb(ILoggingBuilder, LoggingConfiguration)
Enable NLog as logging provider for Microsoft Extension Logging, and explicit load NLog LoggingConfiguration
Public methodStatic memberAddNLogWeb(ILoggingBuilder, NLogAspNetCoreOptions)
Enable NLog as logging provider for Microsoft Extension Logging
Public methodStatic memberAddNLogWeb(ILoggingBuilder, FuncIServiceProvider, LogFactory)
Enable NLog as logging provider for Microsoft Extension Logging, and provide isolated LogFactory
Public methodStatic memberAddNLogWeb(ILoggingBuilder, String)
Enable NLog as logging provider for Microsoft Extension Logging, and explicit load NLog.config from path
Public methodStatic memberAddNLogWeb(ILoggingBuilder, LoggingConfiguration, NLogAspNetCoreOptions)
Enable NLog as logging provider for Microsoft Extension Logging, and explicit load NLog LoggingConfiguration
Public methodStatic memberAddNLogWeb(ILoggingBuilder, LogFactory, NLogAspNetCoreOptions)
Enable NLog as logging provider for Microsoft Extension Logging, and provide isolated LogFactory
Public methodStatic memberAddNLogWeb(ILoggingBuilder, NLogAspNetCoreOptions, FuncIServiceProvider, LogFactory)
Enable NLog as logging provider for Microsoft Extension Logging, and provide isolated LogFactory
Public methodStatic memberConfigureNLog(IHostingEnvironment, String) Obsolete.
Apply NLog configuration from XML config.
Public methodStatic memberConfigureNLog(ILoggingBuilder, LoggingConfiguration) Obsolete.
Configure NLog from API This call is not needed when ConfigureNLog(LoggingConfiguration) is used.
Public methodStatic memberConfigureNLog(ILoggingBuilder, String) Obsolete.
Apply NLog configuration from XML config. This call is not needed when ConfigureNLog(String) is used.
Public methodStatic memberSetupNLogServiceLocator Obsolete.
Override the default IServiceProvider used by the NLog ServiceLocator. NLog ServiceLocator uses the IServiceProvider to access context specific services (Ex. IHttpContextAccessor)
Public methodStatic memberUseNLog(IHostBuilder)
Enable NLog as logging provider for Microsoft Extension Logging.
Public methodStatic memberUseNLog(IWebHostBuilder)
Enable NLog as logging provider for Microsoft Extension Logging.
Public methodStatic memberUseNLog(IHostBuilder, NLogAspNetCoreOptions)
Enable NLog as logging provider for Microsoft Extension Logging.
Public methodStatic memberUseNLog(IWebHostBuilder, NLogAspNetCoreOptions)
Enable NLog as logging provider for Microsoft Extension Logging.
Top
See Also