Share via


HttpLoggingAttribute Classe

Definição

Metadados que fornecem configurações específicas do ponto de extremidade para o middleware HttpLogging.

[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
Herança
HttpLoggingAttribute
Atributos

Construtores

HttpLoggingAttribute(HttpLoggingFields)

Inicializa uma instância da classe HttpLoggingAttribute.

Propriedades

IsRequestBodyLogLimitSet

Indica se RequestBodyLogLimit foi definido.

IsResponseBodyLogLimitSet

Indica se ResponseBodyLogLimit foi definido.

LoggingFields

Especifica quais campos registrar em log.

RequestBodyLogLimit

Especifica o número máximo de bytes a serem registrados para o corpo da solicitação.

ResponseBodyLogLimit

Especifica o número máximo de bytes a serem registrados para o corpo da resposta.

Aplica-se a