HttpLoggingAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |