Condividi tramite


LoggingOptions.ExcludePathStartsWith Proprietà

Definizione

Ottiene o imposta il set di percorsi HTTP che devono essere esclusi dalla registrazione.

[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)

Valore della proprietà

Il valore predefinito è un insieme HashSet<T> vuoto.

Attributi

Esempio

Un set tipico di percorsi HTTP sarà:

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

Commenti

Qualsiasi percorso aggiunto al set non verrà registrato. I percorsi sono senza distinzione tra maiuscole e minuscole.

Si applica a