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.5.0+9fe9421708749962bac8393d7cec5df976518ccb
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