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"
};
注解
不会记录添加到集内的任何路径。 路径不区分大小写。