Share via


HttpLoggingAttribute Class

Definition

Metadata that provides endpoint-specific settings for the HttpLogging middleware.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class HttpLoggingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type HttpLoggingAttribute = class
    inherit Attribute
Public NotInheritable Class HttpLoggingAttribute
Inherits Attribute
Inheritance
HttpLoggingAttribute
Attributes

Constructors

HttpLoggingAttribute(HttpLoggingFields)

Initializes an instance of the HttpLoggingAttribute class.

Properties

IsRequestBodyLogLimitSet

Indicates whether RequestBodyLogLimit has been set.

IsResponseBodyLogLimitSet

Indicates whether ResponseBodyLogLimit has been set.

LoggingFields

Specifies what fields to log.

RequestBodyLogLimit

Specifies the maximum number of bytes to be logged for the request body.

ResponseBodyLogLimit

Specifies the maximum number of bytes to be logged for the response body.

Applies to