monolog-1.0.xsd 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsd:schema xmlns="http://symfony.com/schema/dic/monolog"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. targetNamespace="http://symfony.com/schema/dic/monolog"
  5. elementFormDefault="qualified">
  6. <xsd:element name="config" type="config" />
  7. <xsd:complexType name="config">
  8. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  9. <xsd:element name="handler" type="handler" />
  10. <xsd:element name="channel" type="xsd:string" />
  11. </xsd:choice>
  12. </xsd:complexType>
  13. <xsd:complexType name="handler">
  14. <xsd:sequence>
  15. <xsd:element name="email-prototype" type="email-prototype" minOccurs="0" maxOccurs="1" />
  16. <xsd:element name="member" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  17. <xsd:element name="channels" type="channels" minOccurs="0" maxOccurs="1" />
  18. <xsd:element name="publisher" type="publisher" minOccurs="0" maxOccurs="1" />
  19. <xsd:element name="mongo" type="mongo" minOccurs="0" maxOccurs="1" />
  20. <xsd:element name="elasticsearch" type="elasticsearch" minOccurs="0" maxOccurs="1" />
  21. <xsd:element name="config" type="xsd:anyType" minOccurs="0" maxOccurs="1" />
  22. <xsd:element name="excluded-404" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  23. <xsd:element name="excluded-http-code" type="excluded-http-code" minOccurs="0" maxOccurs="unbounded" />
  24. <xsd:element name="tag" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  25. <xsd:element name="accepted-level" type="level" minOccurs="0" maxOccurs="unbounded" />
  26. <xsd:element name="to-email" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  27. <xsd:element name="header" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  28. </xsd:sequence>
  29. <xsd:attribute name="type" type="xsd:string" />
  30. <xsd:attribute name="priority" type="xsd:integer" />
  31. <xsd:attribute name="level" type="level" />
  32. <xsd:attribute name="bubble" type="xsd:boolean" />
  33. <xsd:attribute name="process-psr-3-messages" type="xsd:boolean" />
  34. <xsd:attribute name="use_locking" type="xsd:boolean" />
  35. <xsd:attribute name="app-name" type="xsd:string" />
  36. <xsd:attribute name="path" type="xsd:string" />
  37. <xsd:attribute name="id" type="xsd:string" />
  38. <xsd:attribute name="name" type="xsd:string" use="required" />
  39. <xsd:attribute name="ident" type="xsd:string" />
  40. <xsd:attribute name="facility" type="xsd:string" />
  41. <xsd:attribute name="host" type="xsd:string" />
  42. <xsd:attribute name="source" type="xsd:string" />
  43. <xsd:attribute name="port" type="xsd:integer" />
  44. <xsd:attribute name="action-level" type="level" />
  45. <xsd:attribute name="passthru-level" type="level" />
  46. <xsd:attribute name="min-level" type="level" />
  47. <xsd:attribute name="max-level" type="level" />
  48. <xsd:attribute name="buffer-size" type="xsd:integer" />
  49. <xsd:attribute name="flush-on-overflow" type="xsd:boolean" />
  50. <xsd:attribute name="max-files" type="xsd:integer" />
  51. <xsd:attribute name="handler" type="xsd:string" />
  52. <xsd:attribute name="from-email" type="xsd:string" />
  53. <xsd:attribute name="to-email" type="xsd:string" />
  54. <xsd:attribute name="subject" type="xsd:string" />
  55. <xsd:attribute name="notify" type="xsd:boolean" />
  56. <xsd:attribute name="room" type="xsd:string" />
  57. <xsd:attribute name="nickname" type="xsd:string" />
  58. <xsd:attribute name="release" type="xsd:string" />
  59. <xsd:attribute name="timeout" type="xsd:string" />
  60. <xsd:attribute name="time" type="xsd:integer" />
  61. <xsd:attribute name="store" type="xsd:string" />
  62. <xsd:attribute name="deduplication-level" type="level" />
  63. <xsd:attribute name="connection-timeout" type="xsd:string" />
  64. <xsd:attribute name="persistent" type="xsd:boolean" />
  65. <xsd:attribute name="dsn" type="xsd:string" />
  66. <xsd:attribute name="hub-id" type="xsd:string" />
  67. <xsd:attribute name="client-id" type="xsd:string" />
  68. <xsd:attribute name="use-ssl" type="xsd:boolean" />
  69. <xsd:attribute name="formatter" type="xsd:string" />
  70. <xsd:attribute name="token" type="xsd:string" />
  71. <xsd:attribute name="channel" type="xsd:string" />
  72. <xsd:attribute name="bot-name" type="xsd:string" />
  73. <xsd:attribute name="use-attachment" type="xsd:boolean" />
  74. <xsd:attribute name="use-short-attachment" type="xsd:boolean" />
  75. <xsd:attribute name="include-extra" type="xsd:boolean" />
  76. <xsd:attribute name="icon-emoji" type="xsd:string" />
  77. <xsd:attribute name="file-permission" type="xsd:string" />
  78. <xsd:attribute name="filename-format" type="xsd:string" />
  79. <xsd:attribute name="date-format" type="xsd:string" />
  80. <xsd:attribute name="index" type="xsd:string" />
  81. <xsd:attribute name="document_type" type="xsd:string" />
  82. <xsd:attribute name="document-type" type="xsd:string" />
  83. <xsd:attribute name="ignore-error" type="xsd:string" />
  84. <xsd:attribute name="api_version" type="xsd:string" />
  85. <xsd:attribute name="include-stacktraces" type="xsd:string" />
  86. <xsd:attribute name="content-type" type="xsd:string" />
  87. <xsd:attribute name="webhook-url" type="xsd:string" />
  88. <xsd:attribute name="slack-team" type="xsd:string" />
  89. <xsd:attribute name="region" type="xsd:string" />
  90. </xsd:complexType>
  91. <xsd:simpleType name="level">
  92. <xsd:restriction base="xsd:string">
  93. <xsd:enumeration value="debug" />
  94. <xsd:enumeration value="info" />
  95. <xsd:enumeration value="notice" />
  96. <xsd:enumeration value="warning" />
  97. <xsd:enumeration value="error" />
  98. <xsd:enumeration value="critical" />
  99. <xsd:enumeration value="alert" />
  100. <xsd:enumeration value="emergency" />
  101. <xsd:enumeration value="DEBUG" />
  102. <xsd:enumeration value="INFO" />
  103. <xsd:enumeration value="NOTICE" />
  104. <xsd:enumeration value="WARNING" />
  105. <xsd:enumeration value="ERROR" />
  106. <xsd:enumeration value="CRITICAL" />
  107. <xsd:enumeration value="ALERT" />
  108. <xsd:enumeration value="EMERGENCY" />
  109. <xsd:enumeration value="100" />
  110. <xsd:enumeration value="200" />
  111. <xsd:enumeration value="250" />
  112. <xsd:enumeration value="300" />
  113. <xsd:enumeration value="400" />
  114. <xsd:enumeration value="500" />
  115. <xsd:enumeration value="550" />
  116. <xsd:enumeration value="600" />
  117. </xsd:restriction>
  118. </xsd:simpleType>
  119. <xsd:complexType name="publisher">
  120. <xsd:attribute name="id" type="xsd:string" />
  121. <xsd:attribute name="hostname" type="xsd:string" />
  122. <xsd:attribute name="port" type="xsd:integer" />
  123. <xsd:attribute name="chunk_size" type="xsd:integer" />
  124. </xsd:complexType>
  125. <xsd:complexType name="email-prototype">
  126. <xsd:attribute name="id" type="xsd:string" />
  127. <xsd:attribute name="method" type="xsd:string" />
  128. </xsd:complexType>
  129. <xsd:complexType name="channels">
  130. <xsd:sequence>
  131. <xsd:element name="channel" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  132. </xsd:sequence>
  133. <xsd:attribute name="type" type="channel_type" />
  134. </xsd:complexType>
  135. <xsd:simpleType name="channel_type">
  136. <xsd:restriction base="xsd:string">
  137. <xsd:enumeration value="inclusive" />
  138. <xsd:enumeration value="exclusive" />
  139. </xsd:restriction>
  140. </xsd:simpleType>
  141. <xsd:complexType name="mongo">
  142. <xsd:attribute name="id" type="xsd:string" />
  143. <xsd:attribute name="host" type="xsd:string" />
  144. <xsd:attribute name="port" type="xsd:integer" />
  145. <xsd:attribute name="user" type="xsd:string" />
  146. <xsd:attribute name="pass" type="xsd:string" />
  147. <xsd:attribute name="database" type="xsd:string" />
  148. <xsd:attribute name="collection" type="xsd:string" />
  149. </xsd:complexType>
  150. <xsd:complexType name="redis">
  151. <xsd:attribute name="id" type="xsd:string" />
  152. <xsd:attribute name="host" type="xsd:string" />
  153. <xsd:attribute name="password" type="xsd:string" />
  154. <xsd:attribute name="port" type="xsd:integer" />
  155. <xsd:attribute name="database" type="xsd:integer" />
  156. <xsd:attribute name="key_name" type="xsd:string" />
  157. </xsd:complexType>
  158. <xsd:complexType name="predis">
  159. <xsd:attribute name="id" type="xsd:string" />
  160. <xsd:attribute name="host" type="xsd:string" />
  161. </xsd:complexType>
  162. <xsd:complexType name="elasticsearch">
  163. <xsd:attribute name="id" type="xsd:string" />
  164. <xsd:attribute name="host" type="xsd:string" />
  165. <xsd:attribute name="port" type="xsd:integer" />
  166. <xsd:attribute name="transport" type="xsd:string" />
  167. <xsd:attribute name="user" type="xsd:string" />
  168. <xsd:attribute name="password" type="xsd:string" />
  169. </xsd:complexType>
  170. <xsd:complexType name="excluded-http-code">
  171. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  172. <xsd:element name="url" type="xsd:string" />
  173. </xsd:choice>
  174. <xsd:attribute name="code" type="xsd:integer" />
  175. </xsd:complexType>
  176. <xsd:complexType name="headers">
  177. <xsd:sequence>
  178. <xsd:any minOccurs="0" processContents="lax"/>
  179. </xsd:sequence>
  180. </xsd:complexType>
  181. </xsd:schema>