| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:log4j="http://logging.apache.org/log4j/2.0/events" targetNamespace="http://logging.apache.org/log4j/2.0/events" elementFormDefault="qualified" attributeFormDefault="unqualified"> |
| <xs:element name="Events"> |
| <xs:annotation> |
| <xs:documentation>Log4J 2.0 XML Schema for XML log event files.</xs:documentation> |
| </xs:annotation> |
| <xs:complexType> |
| <xs:sequence> |
| <xs:element name="Event" minOccurs="0" maxOccurs="unbounded"> |
| <xs:complexType> |
| <xs:sequence> |
| <xs:element name="Message"/> |
| <xs:element name="NDC" minOccurs="0"/> |
| <xs:element name="Marker" minOccurs="0"> |
| <xs:complexType mixed="true"> |
| <xs:attribute name="parent" type="xs:string" use="optional"/> |
| </xs:complexType> |
| </xs:element> |
| <xs:element name="Throwable" minOccurs="0"/> |
| <xs:element name="LocationInfo" minOccurs="0"> |
| <xs:complexType> |
| <xs:attribute name="class" type="xs:string" use="required"/> |
| <xs:attribute name="method" type="xs:string" use="required"/> |
| <xs:attribute name="file" type="xs:string" use="required"/> |
| <xs:attribute name="line" type="xs:int" use="required"/> |
| </xs:complexType> |
| </xs:element> |
| <xs:element name="Properties" minOccurs="0"> |
| <xs:complexType> |
| <xs:sequence> |
| <xs:element name="Data" maxOccurs="unbounded"> |
| <xs:complexType> |
| <xs:attribute name="name" type="xs:string" use="required"/> |
| <xs:attribute name="value" use="required"/> |
| </xs:complexType> |
| </xs:element> |
| </xs:sequence> |
| </xs:complexType> |
| </xs:element> |
| </xs:sequence> |
| <xs:attribute name="logger" type="xs:string" use="required"/> |
| <xs:attribute name="timestamp" type="xs:long" use="required"/> |
| <xs:attribute name="nanoTime" type="xs:long" use="optional"/> |
| <xs:attribute name="level" type="log4j:LevelEnum" use="required"/> |
| <xs:attribute name="threadId" type="xs:long" use="required"/> |
| <xs:attribute name="thread" type="xs:string" use="required"/> |
| <xs:attribute name="threadPriority" type="xs:integer" use="required"/> |
| </xs:complexType> |
| </xs:element> |
| </xs:sequence> |
| </xs:complexType> |
| </xs:element> |
| <xs:simpleType name="LevelEnum"> |
| <xs:restriction base="xs:string"> |
| <xs:enumeration value="OFF"/> |
| <xs:enumeration value="FATAL"/> |
| <xs:enumeration value="ERROR"/> |
| <xs:enumeration value="WARN"/> |
| <xs:enumeration value="INFO"/> |
| <xs:enumeration value="DEBUG"/> |
| <xs:enumeration value="TRACE"/> |
| <xs:enumeration value="ALL"/> |
| </xs:restriction> |
| </xs:simpleType> |
| </xs:schema> |