| 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
Public Class NLogRequestLoggingMiddleware
Dim instance As NLogRequestLoggingMiddleware
type NLogRequestLoggingMiddleware = class end
The NLogRequestLoggingMiddleware type exposes the following members.
Constructors Methods
| Name | Description |
---|
| Invoke |
Executes the middleware.
|
TopRemarks
- LogLevel.Error - Request failed with exception
- LogLevel.Warn - Request completed with unsucessful StatusCode
- LogLevel.Info - Request completed standard StatusCode
See Also