LoggingOptions.ExcludePathStartsWith プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ログから除外する必要がある 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"
};
注釈
セットに追加されたパスはログに記録されません。 パスでは大文字と小文字が区別されません。