PageRenderTime 40ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/apache-log4j-1.2.17/src/main/javadoc/org/apache/log4j/xml/doc-files/log4j.dtd

#
Document Type Definition | 227 lines | 179 code | 48 blank | 0 comment | 0 complexity | 8ac4c1b0a927e184ef859bb4366dc0a6 MD5 | raw file
Possible License(s): Apache-2.0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- Authors: Chris Taylor, Ceki Gulcu. -->
  17. <!-- Version: 1.2 -->
  18. <!-- A configuration element consists of optional renderer
  19. elements,appender elements, categories and an optional root
  20. element. -->
  21. <!ELEMENT log4j:configuration (renderer*, appender*,plugin*, (category|logger)*,root?,
  22. (categoryFactory|loggerFactory)?)>
  23. <!-- The "threshold" attribute takes a level value below which -->
  24. <!-- all logging statements are disabled. -->
  25. <!-- Setting the "debug" enable the printing of internal log4j logging -->
  26. <!-- statements. -->
  27. <!-- By default, debug attribute is "null", meaning that we not do touch -->
  28. <!-- internal log4j logging settings. The "null" value for the threshold -->
  29. <!-- attribute can be misleading. The threshold field of a repository -->
  30. <!-- cannot be set to null. The "null" value for the threshold attribute -->
  31. <!-- simply means don't touch the threshold field, the threshold field -->
  32. <!-- keeps its old value. -->
  33. <!ATTLIST log4j:configuration
  34. xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j/"
  35. threshold (all|trace|debug|info|warn|error|fatal|off|null) "null"
  36. debug (true|false|null) "null"
  37. reset (true|false) "false"
  38. >
  39. <!-- renderer elements allow the user to customize the conversion of -->
  40. <!-- message objects to String. -->
  41. <!ELEMENT renderer EMPTY>
  42. <!ATTLIST renderer
  43. renderedClass CDATA #REQUIRED
  44. renderingClass CDATA #REQUIRED
  45. >
  46. <!-- Appenders must have a name and a class. -->
  47. <!-- Appenders may contain an error handler, a layout, optional parameters -->
  48. <!-- and filters. They may also reference (or include) other appenders. -->
  49. <!ELEMENT appender (errorHandler?, param*,
  50. rollingPolicy?, triggeringPolicy?, connectionSource?,
  51. layout?, filter*, appender-ref*)>
  52. <!ATTLIST appender
  53. name CDATA #REQUIRED
  54. class CDATA #REQUIRED
  55. >
  56. <!ELEMENT layout (param*)>
  57. <!ATTLIST layout
  58. class CDATA #REQUIRED
  59. >
  60. <!ELEMENT filter (param*)>
  61. <!ATTLIST filter
  62. class CDATA #REQUIRED
  63. >
  64. <!-- ErrorHandlers can be of any class. They can admit any number of -->
  65. <!-- parameters. -->
  66. <!ELEMENT errorHandler (param*, root-ref?, logger-ref*, appender-ref?)>
  67. <!ATTLIST errorHandler
  68. class CDATA #REQUIRED
  69. >
  70. <!ELEMENT root-ref EMPTY>
  71. <!ELEMENT logger-ref EMPTY>
  72. <!ATTLIST logger-ref
  73. ref CDATA #REQUIRED
  74. >
  75. <!ELEMENT param EMPTY>
  76. <!ATTLIST param
  77. name CDATA #REQUIRED
  78. value CDATA #REQUIRED
  79. >
  80. <!-- The priority class is org.apache.log4j.Level by default -->
  81. <!ELEMENT priority (param*)>
  82. <!ATTLIST priority
  83. class CDATA #IMPLIED
  84. value CDATA #REQUIRED
  85. >
  86. <!-- The level class is org.apache.log4j.Level by default -->
  87. <!ELEMENT level (param*)>
  88. <!ATTLIST level
  89. class CDATA #IMPLIED
  90. value CDATA #REQUIRED
  91. >
  92. <!-- If no level element is specified, then the configurator MUST not -->
  93. <!-- touch the level of the named category. -->
  94. <!ELEMENT category (param*,(priority|level)?,appender-ref*)>
  95. <!ATTLIST category
  96. class CDATA #IMPLIED
  97. name CDATA #REQUIRED
  98. additivity (true|false) "true"
  99. >
  100. <!-- If no level element is specified, then the configurator MUST not -->
  101. <!-- touch the level of the named logger. -->
  102. <!ELEMENT logger (level?,appender-ref*)>
  103. <!ATTLIST logger
  104. name CDATA #REQUIRED
  105. additivity (true|false) "true"
  106. >
  107. <!ELEMENT categoryFactory (param*)>
  108. <!ATTLIST categoryFactory
  109. class CDATA #REQUIRED>
  110. <!ELEMENT loggerFactory (param*)>
  111. <!ATTLIST loggerFactory
  112. class CDATA #REQUIRED>
  113. <!ELEMENT appender-ref EMPTY>
  114. <!ATTLIST appender-ref
  115. ref CDATA #REQUIRED
  116. >
  117. <!-- plugins must have a name and class and can have optional parameters -->
  118. <!ELEMENT plugin (param*, connectionSource?)>
  119. <!ATTLIST plugin
  120. name CDATA #REQUIRED
  121. class CDATA #REQUIRED
  122. >
  123. <!ELEMENT connectionSource (dataSource?, param*)>
  124. <!ATTLIST connectionSource
  125. class CDATA #REQUIRED
  126. >
  127. <!ELEMENT dataSource (param*)>
  128. <!ATTLIST dataSource
  129. class CDATA #REQUIRED
  130. >
  131. <!ELEMENT triggeringPolicy ((param|filter)*)>
  132. <!ATTLIST triggeringPolicy
  133. name CDATA #IMPLIED
  134. class CDATA #REQUIRED
  135. >
  136. <!ELEMENT rollingPolicy (param*)>
  137. <!ATTLIST rollingPolicy
  138. name CDATA #IMPLIED
  139. class CDATA #REQUIRED
  140. >
  141. <!-- If no priority element is specified, then the configurator MUST not -->
  142. <!-- touch the priority of root. -->
  143. <!-- The root category always exists and cannot be subclassed. -->
  144. <!ELEMENT root (param*, (priority|level)?, appender-ref*)>
  145. <!-- ==================================================================== -->
  146. <!-- A logging event -->
  147. <!-- ==================================================================== -->
  148. <!ELEMENT log4j:eventSet (log4j:event*)>
  149. <!ATTLIST log4j:eventSet
  150. xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j/"
  151. version (1.1|1.2) "1.2"
  152. includesLocationInfo (true|false) "true"
  153. >
  154. <!ELEMENT log4j:event (log4j:message, log4j:NDC?, log4j:throwable?,
  155. log4j:locationInfo?, log4j:properties?) >
  156. <!-- The timestamp format is application dependent. -->
  157. <!ATTLIST log4j:event
  158. logger CDATA #REQUIRED
  159. level CDATA #REQUIRED
  160. thread CDATA #REQUIRED
  161. timestamp CDATA #REQUIRED
  162. time CDATA #IMPLIED
  163. >
  164. <!ELEMENT log4j:message (#PCDATA)>
  165. <!ELEMENT log4j:NDC (#PCDATA)>
  166. <!ELEMENT log4j:throwable (#PCDATA)>
  167. <!ELEMENT log4j:locationInfo EMPTY>
  168. <!ATTLIST log4j:locationInfo
  169. class CDATA #REQUIRED
  170. method CDATA #REQUIRED
  171. file CDATA #REQUIRED
  172. line CDATA #REQUIRED
  173. >
  174. <!ELEMENT log4j:properties (log4j:data*)>
  175. <!ELEMENT log4j:data EMPTY>
  176. <!ATTLIST log4j:data
  177. name CDATA #REQUIRED
  178. value CDATA #REQUIRED
  179. >