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"
};

注解

不会记录添加到集内的任何路径。 路径不区分大小写。

适用于