Skip to content

Commit

Permalink
Merge pull request #3392 from NLog/update-xsd-default-action-on-filters
Browse files Browse the repository at this point in the history
Update xsd: Added defaultAction attribute on filters element
  • Loading branch information
304NotModified committed May 14, 2019
2 parents 3b38fdc + ec79b33 commit 1e30c17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 1e30c17

Please sign in to comment.