Skip to content

Commit

Permalink
Update XSD to NLog 4.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
304NotModified committed Jun 2, 2019
1 parent 8cd3916 commit febd452
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions schemas/NLog.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
</xs:attribute>
<xs:attribute name="globalThreshold" type="NLogLevel">
<xs:annotation>
<xs:documentation>Global log level threshold for application log messages. Messages below this level won't be logged..</xs:documentation>
<xs:documentation>Global log level threshold for application log messages. Messages below this level won't be logged.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="throwExceptions" type="xs:boolean">
<xs:annotation>
<xs:documentation>Throw an exception when there is an internal error. Default value is: false.</xs:documentation>
<xs:documentation>Throw an exception when there is an internal error. Default value is: false. Not recommend to set to true in production!</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="throwConfigExceptions" type="xs:boolean">
Expand Down Expand Up @@ -123,7 +123,7 @@
</xs:choice>
<xs:attribute name="name" use="optional">
<xs:annotation>
<xs:documentation>Name of the logger. May include '*' character which acts like a wildcard. Allowed forms are: *, Name, *Name, Name* and *Name*</xs:documentation>
<xs:documentation>Name of the logger. May include wildcard characters ('*' or '?').</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="levels" type="NLogLevelList">
Expand Down Expand Up @@ -156,9 +156,9 @@
<xs:documentation>Ignore further rules if this one matches.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="enabled" type="xs:boolean" default="true">
<xs:attribute name="ruleName" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Enable or disable logging rule. Disabled rules are ignored.</xs:documentation>
<xs:documentation>Rule identifier to allow rule lookup with Configuration.FindRuleByName and Configuration.RemoveRuleByName.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
Expand All @@ -171,6 +171,11 @@
<xs:element name="whenNotEqual" type="whenNotEqual" />
<xs:element name="whenRepeated" type="whenRepeated" />
</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">
<xs:restriction base="xs:string">
Expand Down Expand Up @@ -621,6 +626,7 @@
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="includeEmptyValue" minOccurs="0" maxOccurs="1" type="xs:boolean" />
</xs:choice>
<xs:attribute name="layout" type="SimpleLayoutAttribute">
<xs:annotation>
Expand All @@ -632,6 +638,11 @@
<xs:documentation>Viewer parameter name.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="includeEmptyValue" type="xs:boolean">
<xs:annotation>
<xs:documentation>Whether an attribute with empty value should be included in the output</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="ColoredConsole">
<xs:complexContent>
Expand Down Expand Up @@ -1532,6 +1543,7 @@
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
<xs:element name="filter" minOccurs="0" maxOccurs="1" type="Filter" />
<xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
</xs:choice>
<xs:attribute name="name" type="xs:string">
Expand All @@ -1544,6 +1556,11 @@
<xs:documentation>Condition expression. Log events who meet this condition will be forwarded to the wrapped target.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="filter" type="Filter">
<xs:annotation>
<xs:documentation>Filter. Log events who evaluates to will be discarded</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="optimizeBufferReuse" type="xs:boolean">
<xs:annotation>
<xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
Expand Down Expand Up @@ -2976,6 +2993,7 @@
<xs:element name="includeMdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="includeNdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
</xs:choice>
<xs:attribute name="includeAllProperties" type="xs:boolean">
<xs:annotation>
Expand Down

0 comments on commit febd452

Please sign in to comment.