You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2014/09/27 13:56:32 UTC

[4/9] git commit: LOG4J2-589 initial schema with outer CustomLevels container element

LOG4J2-589 initial schema with outer CustomLevels container element

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/d30ea90f
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/d30ea90f
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/d30ea90f

Branch: refs/heads/master
Commit: d30ea90faacf35fe743bdc729ec399e60f3520ae
Parents: b534ca2
Author: rpopma <rp...@apache.org>
Authored: Fri Sep 26 02:20:17 2014 +0900
Committer: rpopma <rp...@apache.org>
Committed: Fri Sep 26 02:20:17 2014 +0900

----------------------------------------------------------------------
 log4j-core/src/main/resources/Log4j-config.xsd | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d30ea90f/log4j-core/src/main/resources/Log4j-config.xsd
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/resources/Log4j-config.xsd b/log4j-core/src/main/resources/Log4j-config.xsd
index a19e125..8f492d1 100644
--- a/log4j-core/src/main/resources/Log4j-config.xsd
+++ b/log4j-core/src/main/resources/Log4j-config.xsd
@@ -20,6 +20,10 @@
     <xs:element name="Configuration" type="ConfigurationType"/>
     <xs:complexType name="ConfigurationType">
         <xs:sequence>
+            <xs:choice minOccurs="0" maxOccurs="1">
+                <xs:element name="CustomLevels" type="CustomLevelsType"/>
+                <xs:element name="CustomLevel" type="CustomLevelType"/>
+            </xs:choice>
             <xs:element name="Properties" type="PropertiesType"/>
             <xs:choice minOccurs="0" maxOccurs="1">
                 <xs:element name="Filters" type="FiltersType"/>
@@ -112,6 +116,15 @@
             <xs:element name="Filter" type="FilterType" minOccurs="0" maxOccurs="unbounded"/>
         </xs:sequence>
     </xs:complexType>
+    <xs:complexType name="CustomLevelType">
+        <xs:attribute name="name" type="xs:string" use="required"/>
+        <xs:attribute name="intLevel" type="xs:string" use="required"/>
+    </xs:complexType>
+    <xs:complexType name="CustomLevelsType">
+        <xs:sequence>
+            <xs:element name="CustomLevel" type="CustomLevelType" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+    </xs:complexType>
     <xs:complexType name="LoggersType" mixed="true">
         <xs:sequence>
             <xs:element name="Logger" type="LoggerType" minOccurs="0" maxOccurs="unbounded"/>