Udostępnij za pośrednictwem


LoggingOptions.ExcludePathStartsWith Właściwość

Definicja

Pobiera lub ustawia zestaw ścieżek HTTP, które powinny zostać wykluczone z rejestrowania.

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

Wartość właściwości

Wartość domyślna jest pustą HashSet<T>wartością .

Atrybuty

Przykłady

Typowy zestaw ścieżek HTTP to:

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

Uwagi

Żadna ścieżka dodana do zestawu nie zostanie zarejestrowana. Ścieżki są niewrażliwe na wielkość liter.

Dotyczy