次の方法で共有


LoggingOptions.ExcludePathStartsWith プロパティ

定義

ログから除外する必要がある HTTP パスのセットを取得または設定します。

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

プロパティ値

既定値は空の HashSet<T> です。

属性

一般的な HTTP パスのセットは次のとおりです。

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

注釈

セットに追加されたパスはログに記録されません。 パスでは大文字と小文字が区別されません。

適用対象