Click or drag to resize

NLogRequestLoggingMiddleware Class

Middleware that writes all requests to Logger named "RequestLogging"
Inheritance Hierarchy
SystemObject
  NLog.WebNLogRequestLoggingMiddleware

Namespace:  NLog.Web
Assembly:  NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax
public class NLogRequestLoggingMiddleware

The NLogRequestLoggingMiddleware type exposes the following members.

Constructors
  NameDescription
Public methodNLogRequestLoggingMiddleware
Initializes new instance of the NLogRequestLoggingMiddleware class
Top
Methods
  NameDescription
Public methodInvoke
Executes the middleware.
Top
Remarks
- LogLevel.Error - Request failed with exception
- LogLevel.Warn - Request completed with unsucessful StatusCode
- LogLevel.Info - Request completed standard StatusCode
See Also