Dela via


LoggingOptions Class

Definition

Top-level model for formatting incoming HTTP requests and their corresponding responses.

public class LoggingOptions
type LoggingOptions = class
Public Class LoggingOptions
Inheritance
LoggingOptions

Constructors

LoggingOptions()

Properties

BodySizeLimit

Gets or sets the maximum number of bytes of the request/response body to be read.

ExcludePathStartsWith

Gets or sets the set of HTTP paths that should be excluded from logging.

LogBody

Gets or sets a value indicating whether HTTP request and response body will be logged.

LogRequestStart

Gets or sets a value indicating whether the request is logged additionally before any further processing.

RequestBodyContentTypes

Gets or sets the set of request body content types which are considered text and thus possible to log.

RequestBodyReadTimeout

Gets or sets a maximum amount of time to wait for the request body to be read.

RequestHeadersDataClasses

Gets or sets a map between request headers to be logged and their data classification.

RequestPathLoggingMode

Gets or sets a strategy how request path should be logged.

RequestPathParameterRedactionMode

Gets or sets a value indicating how request path parameter should be redacted.

ResponseBodyContentTypes

Gets or sets the set of response body content types which are considered text and thus possible to log.

ResponseHeadersDataClasses

Gets or sets a map between response headers to be logged and their data classification.

RouteParameterDataClasses

Gets or sets a map between HTTP path parameters and their data classification.

Applies to