log4j.dtd 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!-- Authors: Chris Taylor, Ceki Gulcu. -->
  3. <!-- Version: 1.2 -->
  4. <!-- A configuration element consists of optional renderer
  5. elements,appender elements, categories and an optional root
  6. element. -->
  7. <!ELEMENT log4j:configuration (renderer*, appender*,(category|logger)*,root?,
  8. categoryFactory?)>
  9. <!-- The "threshold" attribute takes a level value such that all -->
  10. <!-- logging statements with a level equal or below this value are -->
  11. <!-- disabled. -->
  12. <!-- Setting the "debug" or "configDebug" attributes enable the printing -->
  13. <!-- of internal log4j logging statements. -->
  14. <!-- By default, debug attribute is "null", meaning that we not touch -->
  15. <!-- internal log4j logging settings. -->
  16. <!ATTLIST log4j:configuration
  17. xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j/"
  18. threshold (all|debug|info|warn|error|fatal|off|null) "null"
  19. debug (true|false|null) "null"
  20. >
  21. <!-- renderer elements allow the user to customize the conversion of -->
  22. <!-- message objects to String. -->
  23. <!ELEMENT renderer EMPTY>
  24. <!ATTLIST renderer
  25. renderedClass CDATA #REQUIRED
  26. renderingClass CDATA #REQUIRED
  27. >
  28. <!-- Appenders must have a name and a class. -->
  29. <!-- Appenders may contain an error handler, a layout, optional parameters -->
  30. <!-- and filters. They may also reference (or include) other appenders. -->
  31. <!ELEMENT appender (errorHandler?, param*, layout?, filter*, appender-ref*)>
  32. <!ATTLIST appender
  33. name ID #REQUIRED
  34. class CDATA #REQUIRED
  35. >
  36. <!ELEMENT layout (param*)>
  37. <!ATTLIST layout
  38. class CDATA #REQUIRED
  39. >
  40. <!ELEMENT filter (param*)>
  41. <!ATTLIST filter
  42. class CDATA #REQUIRED
  43. >
  44. <!-- ErrorHandlers can be of any class. They can admit any number of -->
  45. <!-- parameters. -->
  46. <!ELEMENT errorHandler (param*, root-ref?, logger-ref*, appender-ref?)>
  47. <!ATTLIST errorHandler
  48. class CDATA #REQUIRED
  49. >
  50. <!ELEMENT root-ref EMPTY>
  51. <!ELEMENT logger-ref EMPTY>
  52. <!ATTLIST logger-ref
  53. ref IDREF #REQUIRED
  54. >
  55. <!ELEMENT param EMPTY>
  56. <!ATTLIST param
  57. name CDATA #REQUIRED
  58. value CDATA #REQUIRED
  59. >
  60. <!-- The priority class is org.apache.log4j.Level by default -->
  61. <!ELEMENT priority (param*)>
  62. <!ATTLIST priority
  63. class CDATA #IMPLIED
  64. value CDATA #REQUIRED
  65. >
  66. <!-- The level class is org.apache.log4j.Level by default -->
  67. <!ELEMENT level (param*)>
  68. <!ATTLIST level
  69. class CDATA #IMPLIED
  70. value CDATA #REQUIRED
  71. >
  72. <!-- If no level element is specified, then the configurator MUST not -->
  73. <!-- touch the level of the named category. -->
  74. <!ELEMENT category (param*,(priority|level)?,appender-ref*)>
  75. <!ATTLIST category
  76. class CDATA #IMPLIED
  77. name CDATA #REQUIRED
  78. additivity (true|false) "true"
  79. >
  80. <!-- If no level element is specified, then the configurator MUST not -->
  81. <!-- touch the level of the named logger. -->
  82. <!ELEMENT logger (param*,level?,appender-ref*)>
  83. <!ATTLIST logger
  84. name ID #REQUIRED
  85. additivity (true|false) "true"
  86. >
  87. <!ELEMENT categoryFactory (param*)>
  88. <!ATTLIST categoryFactory
  89. class CDATA #REQUIRED>
  90. <!ELEMENT appender-ref EMPTY>
  91. <!ATTLIST appender-ref
  92. ref IDREF #REQUIRED
  93. >
  94. <!-- If no priority element is specified, then the configurator MUST not -->
  95. <!-- touch the priority of root. -->
  96. <!-- The root category always exists and cannot be subclassed. -->
  97. <!ELEMENT root (param*, (priority|level)?, appender-ref*)>
  98. <!-- ==================================================================== -->
  99. <!-- A logging event -->
  100. <!-- ==================================================================== -->
  101. <!ELEMENT log4j:eventSet (log4j:event*)>
  102. <!ATTLIST log4j:eventSet
  103. includesLocationInfo (true|false) "true"
  104. >
  105. <!ELEMENT log4j:event (log4j:message, log4j:NDC?, log4j:throwable?,
  106. log4j:locationInfo?) >
  107. <!-- The timestamp format is application dependent. -->
  108. <!ATTLIST log4j:event
  109. category CDATA #REQUIRED
  110. priority CDATA #REQUIRED
  111. thread CDATA #REQUIRED
  112. timestamp CDATA #REQUIRED
  113. >
  114. <!ELEMENT log4j:message (#PCDATA)>
  115. <!ELEMENT log4j:NDC (#PCDATA)>
  116. <!ELEMENT log4j:throwable (#PCDATA)>
  117. <!ELEMENT log4j:locationInfo EMPTY>
  118. <!ATTLIST log4j:locationInfo
  119. class CDATA #REQUIRED
  120. method CDATA #REQUIRED
  121. file CDATA #REQUIRED
  122. line CDATA #REQUIRED
  123. >