Click or drag to resize

NLogRequestLoggingOptions Class

Options configuration for NLogRequestLoggingMiddleware
Inheritance Hierarchy
SystemObject
  NLog.WebNLogRequestLoggingOptions

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

The NLogRequestLoggingOptions type exposes the following members.

Constructors
  NameDescription
Public methodNLogRequestLoggingOptions
Initializes a new instance of the NLogRequestLoggingOptions class.
Top
Properties
  NameDescription
Public propertyDurationThresholdMs
Get or set duration time in milliseconds, before a HttpRequest is seen as slow (Logged as warning)
Public propertyExcludeRequestPaths
Gets or sets request-paths where LogLevel should be reduced (Logged as debug)
Public propertyLoggerName
Logger-name used for logging http-requests
Public propertyShouldLogRequest
Mapper from HttpContext status to LogLevel
Top
See Also