Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update xsd: Added defaultAction attribute on filters element #3392

Merged
merged 2 commits into from May 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/NLog/Config/LoggingRule.cs
Expand Up @@ -185,7 +185,7 @@ public ReadOnlyCollection<LogLevel> Levels
}

/// <summary>
/// Default action if all filters won't match
/// Default action if none of the filters match
/// </summary>
public FilterResult DefaultFilterResult { get; set; } = FilterResult.Neutral;

Expand Down
5 changes: 5 additions & 0 deletions tools/MakeNLogXSD/TemplateXSD.xml
Expand Up @@ -185,6 +185,11 @@
<xs:choice minOccurs="0" maxOccurs="unbounded">
<filters-go-here xmlns=""/>
</xs:choice>
<xs:attribute name="defaultAction" type="FilterResult">
<xs:annotation>
<xs:documentation>Default action if none of the filters match.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>

<xs:simpleType name="NLogLevel">
Expand Down