Click or drag to resize

NLog.Web Namespace

Integration with ASP.NET.
Classes
  ClassDescription
Public classAspNetExtensions
Helpers for ASP.NET
Public classDefaultHttpContextAccessor
Provides the HttpContext associated with the current request.
Public classNLogAspNetCoreOptions
Options for ASP.NET Core and NLog
Public classNLogBufferingTargetWrapperMiddleware
This class is to intercept the HTTP pipeline and to allow the AspNetBufferingTargetWrapper to function properly Usage: app.UseMiddleware<NLogBufferingTargetWrapperMiddleware>(); where app is an IApplicationBuilder
Public classNLogBuilder Obsolete.
NLog helpers to ensure registration of NLog.Web-extensions before loading NLog-configuration
Public classNLogHttpModule
ASP.NET HttpModule that enables NLog to hook BeginRequest and EndRequest events easily.
Public classNLogRequestLoggingMiddleware
Middleware that writes all requests to Logger named "RequestLogging"
Public classNLogRequestLoggingModule
HttpModule that writes all requests to Logger named "RequestLogging"
Public classNLogRequestLoggingOptions
Options configuration for NLogRequestLoggingMiddleware
Public classNLogRequestPostedBodyMiddleware
ASP.NET Core Middleware that enables ${aspnet-request-posted-body} Inject the NLogRequestPostBodyMiddlewareOption in the IoC if wanting to override default values for constructor
Public classNLogRequestPostedBodyMiddlewareOptions
Contains the configuration for the NLogRequestPostedBodyMiddleware
Public classNLogRequestPostedBodyModule
HttpModule that enables ${aspnet-request-posted-body}
Public classSetupBuilderExtensions
Extension methods to setup LogFactory options
Public classSetupExtensionsBuilderExtensions
Extension methods to setup NLog extensions, so they are known when loading NLog LoggingConfiguration
Interfaces
  InterfaceDescription
Public interfaceIHttpContextAccessor
Provides access to the HttpContext