Compartilhar via


LoggingOptions.ExcludePathStartsWith Propriedade

Definição

Obtém ou define o conjunto de caminhos HTTP que devem ser excluídos do registro em log.

[System.ComponentModel.DataAnnotations.Required]
public System.Collections.Generic.ISet<string> ExcludePathStartsWith { get; set; }
[<System.ComponentModel.DataAnnotations.Required>]
member this.ExcludePathStartsWith : System.Collections.Generic.ISet<string> with get, set
Public Property ExcludePathStartsWith As ISet(Of String)

Valor da propriedade

O valor padrão é um HashSet<T> vazio.

Atributos

Exemplos

Um conjunto típico de caminhos HTTP seria:

ExcludePathStartsWith = new HashSet<string>
{
    "/probe/live",
    "/probe/ready"
};

Comentários

Qualquer caminho adicionado ao conjunto não será registrado. Os caminhos não diferenciam maiúsculas de minúsculas.

Aplica-se a