You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

3106 lines
159 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="NLog" targetNamespace="http://www.nlog-project.org/schemas/NLog.xsd" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.nlog-project.org/schemas/NLog.xsd">
  3. <xs:element name="nlog" type="NLogConfiguration" />
  4. <xs:complexType name="NLogConfiguration">
  5. <xs:choice minOccurs="0" maxOccurs="unbounded">
  6. <xs:element name="extensions" type="NLogExtensions" />
  7. <xs:element name="include" type="NLogInclude" />
  8. <xs:element name="variable" type="NLogVariable" />
  9. <xs:element name="targets" type="NLogTargets" />
  10. <xs:element name="rules" type="NLogRules" />
  11. <xs:element name="time" type="TimeSource" />
  12. </xs:choice>
  13. <xs:attribute name="autoReload" type="xs:boolean">
  14. <xs:annotation>
  15. <xs:documentation>Watch config file for changes and reload automatically.</xs:documentation>
  16. </xs:annotation>
  17. </xs:attribute>
  18. <xs:attribute name="internalLogToConsole" type="xs:boolean">
  19. <xs:annotation>
  20. <xs:documentation>Print internal NLog messages to the console. Default value is: false</xs:documentation>
  21. </xs:annotation>
  22. </xs:attribute>
  23. <xs:attribute name="internalLogToConsoleError" type="xs:boolean">
  24. <xs:annotation>
  25. <xs:documentation>Print internal NLog messages to the console error output. Default value is: false</xs:documentation>
  26. </xs:annotation>
  27. </xs:attribute>
  28. <xs:attribute name="internalLogFile" type="xs:string">
  29. <xs:annotation>
  30. <xs:documentation>Write internal NLog messages to the specified file.</xs:documentation>
  31. </xs:annotation>
  32. </xs:attribute>
  33. <xs:attribute name="internalLogLevel" type="NLogLevel">
  34. <xs:annotation>
  35. <xs:documentation>Log level threshold for internal log messages. Default value is: Info.</xs:documentation>
  36. </xs:annotation>
  37. </xs:attribute>
  38. <xs:attribute name="globalThreshold" type="NLogLevel">
  39. <xs:annotation>
  40. <xs:documentation>Global log level threshold for application log messages. Messages below this level won't be logged..</xs:documentation>
  41. </xs:annotation>
  42. </xs:attribute>
  43. <xs:attribute name="throwExceptions" type="xs:boolean">
  44. <xs:annotation>
  45. <xs:documentation>Throw an exception when there is an internal error. Default value is: false.</xs:documentation>
  46. </xs:annotation>
  47. </xs:attribute>
  48. <xs:attribute name="throwConfigExceptions" type="xs:boolean">
  49. <xs:annotation>
  50. <xs:documentation>Throw an exception when there is a configuration error. If not set, determined by throwExceptions.</xs:documentation>
  51. </xs:annotation>
  52. </xs:attribute>
  53. <xs:attribute name="keepVariablesOnReload" type="xs:boolean">
  54. <xs:annotation>
  55. <xs:documentation>Gets or sets a value indicating whether Variables should be kept on configuration reload. Default value is: false.</xs:documentation>
  56. </xs:annotation>
  57. </xs:attribute>
  58. <xs:attribute name="internalLogToTrace" type="xs:boolean">
  59. <xs:annotation>
  60. <xs:documentation>Write internal NLog messages to the System.Diagnostics.Trace. Default value is: false.</xs:documentation>
  61. </xs:annotation>
  62. </xs:attribute>
  63. <xs:attribute name="internalLogIncludeTimestamp" type="xs:boolean">
  64. <xs:annotation>
  65. <xs:documentation>Write timestamps for internal NLog messages. Default value is: true.</xs:documentation>
  66. </xs:annotation>
  67. </xs:attribute>
  68. <xs:attribute name="useInvariantCulture" type="xs:boolean">
  69. <xs:annotation>
  70. <xs:documentation>Use InvariantCulture as default culture instead of CurrentCulture. Default value is: false.</xs:documentation>
  71. </xs:annotation>
  72. </xs:attribute>
  73. <xs:attribute name="messageTemplateParser" type="xs:boolean">
  74. <xs:annotation>
  75. <xs:documentation>Perform mesage template parsing and formatting of LogEvent messages (true = Always, false = Never, empty = Auto Detect). Default value is: empty.</xs:documentation>
  76. </xs:annotation>
  77. </xs:attribute>
  78. </xs:complexType>
  79. <xs:complexType name="NLogTargets">
  80. <xs:choice minOccurs="0" maxOccurs="unbounded">
  81. <xs:element name="default-wrapper" type="WrapperTargetBase" />
  82. <xs:element name="default-target-parameters" type="Target" />
  83. <xs:element name="target" type="Target" />
  84. <xs:element name="wrapper-target" type="WrapperTargetBase" />
  85. <xs:element name="compound-target" type="CompoundTargetBase" />
  86. </xs:choice>
  87. <xs:attribute name="async" type="xs:boolean">
  88. <xs:annotation>
  89. <xs:documentation>Make all targets within this section asynchronous (creates additional threads but the calling thread isn't blocked by any target writes).</xs:documentation>
  90. </xs:annotation>
  91. </xs:attribute>
  92. </xs:complexType>
  93. <xs:complexType name="NLogRules">
  94. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  95. <xs:element name="logger" type="NLogLoggerRule" />
  96. </xs:sequence>
  97. </xs:complexType>
  98. <xs:complexType name="NLogExtensions">
  99. <xs:choice minOccurs="0" maxOccurs="unbounded">
  100. <xs:element name="add" type="NLogExtensionsAdd" />
  101. </xs:choice>
  102. </xs:complexType>
  103. <xs:complexType name="NLogExtensionsAdd">
  104. <xs:attribute name="prefix" type="xs:string">
  105. <xs:annotation>
  106. <xs:documentation>Prefix for targets/layout renderers/filters/conditions loaded from this assembly.</xs:documentation>
  107. </xs:annotation>
  108. </xs:attribute>
  109. <xs:attribute name="assemblyFile" type="xs:string">
  110. <xs:annotation>
  111. <xs:documentation>Load NLog extensions from the specified file (*.dll)</xs:documentation>
  112. </xs:annotation>
  113. </xs:attribute>
  114. <xs:attribute name="assembly" type="xs:string">
  115. <xs:annotation>
  116. <xs:documentation>Load NLog extensions from the specified assembly. Assembly name should be fully qualified.</xs:documentation>
  117. </xs:annotation>
  118. </xs:attribute>
  119. </xs:complexType>
  120. <xs:complexType name="NLogLoggerRule">
  121. <xs:choice minOccurs="0" maxOccurs="unbounded">
  122. <xs:element name="filters" type="NLogFilters" />
  123. </xs:choice>
  124. <xs:attribute name="name" use="optional">
  125. <xs:annotation>
  126. <xs:documentation>Name of the logger. May include '*' character which acts like a wildcard. Allowed forms are: *, Name, *Name, Name* and *Name*</xs:documentation>
  127. </xs:annotation>
  128. </xs:attribute>
  129. <xs:attribute name="levels" type="NLogLevelList">
  130. <xs:annotation>
  131. <xs:documentation>Comma separated list of levels that this rule matches.</xs:documentation>
  132. </xs:annotation>
  133. </xs:attribute>
  134. <xs:attribute name="minlevel" type="NLogLevel">
  135. <xs:annotation>
  136. <xs:documentation>Minimum level that this rule matches.</xs:documentation>
  137. </xs:annotation>
  138. </xs:attribute>
  139. <xs:attribute name="maxlevel" type="NLogLevel">
  140. <xs:annotation>
  141. <xs:documentation>Maximum level that this rule matches.</xs:documentation>
  142. </xs:annotation>
  143. </xs:attribute>
  144. <xs:attribute name="level" type="NLogLevel">
  145. <xs:annotation>
  146. <xs:documentation>Level that this rule matches.</xs:documentation>
  147. </xs:annotation>
  148. </xs:attribute>
  149. <xs:attribute name="writeTo" type="NLogTargetIDList">
  150. <xs:annotation>
  151. <xs:documentation>Comma separated list of target names.</xs:documentation>
  152. </xs:annotation>
  153. </xs:attribute>
  154. <xs:attribute name="final" type="xs:boolean" default="false">
  155. <xs:annotation>
  156. <xs:documentation>Ignore further rules if this one matches.</xs:documentation>
  157. </xs:annotation>
  158. </xs:attribute>
  159. <xs:attribute name="enabled" type="xs:boolean" default="true">
  160. <xs:annotation>
  161. <xs:documentation>Enable or disable logging rule. Disabled rules are ignored.</xs:documentation>
  162. </xs:annotation>
  163. </xs:attribute>
  164. </xs:complexType>
  165. <xs:complexType name="NLogFilters">
  166. <xs:choice minOccurs="0" maxOccurs="unbounded">
  167. <xs:element name="when" type="when" />
  168. <xs:element name="whenContains" type="whenContains" />
  169. <xs:element name="whenEqual" type="whenEqual" />
  170. <xs:element name="whenNotContains" type="whenNotContains" />
  171. <xs:element name="whenNotEqual" type="whenNotEqual" />
  172. <xs:element name="whenRepeated" type="whenRepeated" />
  173. </xs:choice>
  174. </xs:complexType>
  175. <xs:simpleType name="NLogLevel">
  176. <xs:restriction base="xs:string">
  177. <xs:enumeration value="Off" />
  178. <xs:enumeration value="Trace" />
  179. <xs:enumeration value="Debug" />
  180. <xs:enumeration value="Info" />
  181. <xs:enumeration value="Warn" />
  182. <xs:enumeration value="Error" />
  183. <xs:enumeration value="Fatal" />
  184. </xs:restriction>
  185. </xs:simpleType>
  186. <xs:simpleType name="LineEndingMode">
  187. <xs:restriction base="xs:string">
  188. <xs:enumeration value="Default" />
  189. <xs:enumeration value="CRLF" />
  190. <xs:enumeration value="CR" />
  191. <xs:enumeration value="LF" />
  192. <xs:enumeration value="None" />
  193. </xs:restriction>
  194. </xs:simpleType>
  195. <xs:simpleType name="NLogLevelList">
  196. <xs:restriction base="xs:string">
  197. <xs:pattern value="(|Trace|Debug|Info|Warn|Error|Fatal)(,(Trace|Debug|Info|Warn|Error|Fatal))*" />
  198. </xs:restriction>
  199. </xs:simpleType>
  200. <xs:complexType name="NLogInclude">
  201. <xs:attribute name="file" type="SimpleLayoutAttribute" use="required">
  202. <xs:annotation>
  203. <xs:documentation>Name of the file to be included. You could use * wildcard. The name is relative to the name of the current config file.</xs:documentation>
  204. </xs:annotation>
  205. </xs:attribute>
  206. <xs:attribute name="ignoreErrors" type="xs:boolean" use="optional" default="false">
  207. <xs:annotation>
  208. <xs:documentation>Ignore any errors in the include file.</xs:documentation>
  209. </xs:annotation>
  210. </xs:attribute>
  211. </xs:complexType>
  212. <xs:complexType name="NLogVariable">
  213. <xs:attribute name="name" type="xs:string" use="required">
  214. <xs:annotation>
  215. <xs:documentation>Variable name.</xs:documentation>
  216. </xs:annotation>
  217. </xs:attribute>
  218. <xs:attribute name="value" type="SimpleLayoutAttribute" use="required">
  219. <xs:annotation>
  220. <xs:documentation>Variable value.</xs:documentation>
  221. </xs:annotation>
  222. </xs:attribute>
  223. </xs:complexType>
  224. <xs:simpleType name="NLogTargetIDList">
  225. <xs:restriction base="xs:string">
  226. <xs:pattern value="(|([a-zA-Z][a-zA-Z0-9_\-]*))(,([a-zA-Z][a-zA-Z0-9_\-]*))*" />
  227. </xs:restriction>
  228. </xs:simpleType>
  229. <xs:complexType name="Target" abstract="true"></xs:complexType>
  230. <xs:complexType name="TargetRef">
  231. <xs:attribute name="name" type="xs:string" use="required" />
  232. </xs:complexType>
  233. <xs:complexType name="WrapperTargetBase" abstract="true">
  234. <xs:complexContent>
  235. <xs:extension base="Target">
  236. <xs:choice minOccurs="0" maxOccurs="unbounded">
  237. <xs:element name="target" type="Target" minOccurs="1" maxOccurs="1" />
  238. <xs:element name="wrapper-target" type="WrapperTargetBase" minOccurs="1" maxOccurs="1" />
  239. <xs:element name="compound-target" type="CompoundTargetBase" minOccurs="1" maxOccurs="1" />
  240. <xs:element name="target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
  241. <xs:element name="wrapper-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
  242. <xs:element name="compound-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
  243. </xs:choice>
  244. </xs:extension>
  245. </xs:complexContent>
  246. </xs:complexType>
  247. <xs:complexType name="CompoundTargetBase" abstract="true">
  248. <xs:complexContent>
  249. <xs:extension base="Target">
  250. <xs:choice minOccurs="0" maxOccurs="unbounded">
  251. <xs:element name="target" type="Target" minOccurs="1" maxOccurs="unbounded" />
  252. <xs:element name="wrapper-target" type="WrapperTargetBase" minOccurs="1" maxOccurs="1" />
  253. <xs:element name="compound-target" type="CompoundTargetBase" minOccurs="1" maxOccurs="1" />
  254. <xs:element name="target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
  255. <xs:element name="wrapper-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
  256. <xs:element name="compound-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
  257. </xs:choice>
  258. </xs:extension>
  259. </xs:complexContent>
  260. </xs:complexType>
  261. <xs:complexType name="Filter" abstract="true"></xs:complexType>
  262. <xs:complexType name="TimeSource" abstract="true"></xs:complexType>
  263. <xs:simpleType name="SimpleLayoutAttribute">
  264. <xs:restriction base="xs:string">
  265. <xs:pattern value=".*" />
  266. </xs:restriction>
  267. </xs:simpleType>
  268. <xs:simpleType name="Condition">
  269. <xs:restriction base="xs:string">
  270. <xs:minLength value="1" />
  271. </xs:restriction>
  272. </xs:simpleType>
  273. <xs:complexType name="AsyncWrapper">
  274. <xs:complexContent>
  275. <xs:extension base="WrapperTargetBase">
  276. <xs:choice minOccurs="0" maxOccurs="unbounded">
  277. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  278. <xs:element name="batchSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  279. <xs:element name="fullBatchSizeWriteLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
  280. <xs:element name="overflowAction" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction" />
  281. <xs:element name="queueLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
  282. <xs:element name="timeToSleepBetweenBatches" minOccurs="0" maxOccurs="1" type="xs:integer" />
  283. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  284. </xs:choice>
  285. <xs:attribute name="name" type="xs:string">
  286. <xs:annotation>
  287. <xs:documentation>Name of the target.</xs:documentation>
  288. </xs:annotation>
  289. </xs:attribute>
  290. <xs:attribute name="batchSize" type="xs:integer">
  291. <xs:annotation>
  292. <xs:documentation>Number of log events that should be processed in a batch by the lazy writer thread.</xs:documentation>
  293. </xs:annotation>
  294. </xs:attribute>
  295. <xs:attribute name="fullBatchSizeWriteLimit" type="xs:integer">
  296. <xs:annotation>
  297. <xs:documentation>Limit of full s to write before yielding into Performance is better when writing many small batches, than writing a single large batch</xs:documentation>
  298. </xs:annotation>
  299. </xs:attribute>
  300. <xs:attribute name="overflowAction" type="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction">
  301. <xs:annotation>
  302. <xs:documentation>Action to be taken when the lazy writer thread request queue count exceeds the set limit.</xs:documentation>
  303. </xs:annotation>
  304. </xs:attribute>
  305. <xs:attribute name="queueLimit" type="xs:integer">
  306. <xs:annotation>
  307. <xs:documentation>Limit on the number of requests in the lazy writer thread request queue.</xs:documentation>
  308. </xs:annotation>
  309. </xs:attribute>
  310. <xs:attribute name="timeToSleepBetweenBatches" type="xs:integer">
  311. <xs:annotation>
  312. <xs:documentation>Time in milliseconds to sleep between batches.</xs:documentation>
  313. </xs:annotation>
  314. </xs:attribute>
  315. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  316. <xs:annotation>
  317. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  318. </xs:annotation>
  319. </xs:attribute>
  320. </xs:extension>
  321. </xs:complexContent>
  322. </xs:complexType>
  323. <xs:simpleType name="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction">
  324. <xs:restriction base="xs:string">
  325. <xs:enumeration value="Grow" />
  326. <xs:enumeration value="Discard" />
  327. <xs:enumeration value="Block" />
  328. </xs:restriction>
  329. </xs:simpleType>
  330. <xs:complexType name="AutoFlushWrapper">
  331. <xs:complexContent>
  332. <xs:extension base="WrapperTargetBase">
  333. <xs:choice minOccurs="0" maxOccurs="unbounded">
  334. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  335. <xs:element name="asyncFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  336. <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
  337. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  338. </xs:choice>
  339. <xs:attribute name="name" type="xs:string">
  340. <xs:annotation>
  341. <xs:documentation>Name of the target.</xs:documentation>
  342. </xs:annotation>
  343. </xs:attribute>
  344. <xs:attribute name="asyncFlush" type="xs:boolean">
  345. <xs:annotation>
  346. <xs:documentation>Delay the flush until the LogEvent has been confirmed as written</xs:documentation>
  347. </xs:annotation>
  348. </xs:attribute>
  349. <xs:attribute name="condition" type="Condition">
  350. <xs:annotation>
  351. <xs:documentation>Condition expression. Log events who meet this condition will cause a flush on the wrapped target.</xs:documentation>
  352. </xs:annotation>
  353. </xs:attribute>
  354. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  355. <xs:annotation>
  356. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  357. </xs:annotation>
  358. </xs:attribute>
  359. </xs:extension>
  360. </xs:complexContent>
  361. </xs:complexType>
  362. <xs:complexType name="BufferingWrapper">
  363. <xs:complexContent>
  364. <xs:extension base="WrapperTargetBase">
  365. <xs:choice minOccurs="0" maxOccurs="unbounded">
  366. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  367. <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  368. <xs:element name="flushTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
  369. <xs:element name="slidingTimeout" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  370. <xs:element name="overflowAction" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.BufferingTargetWrapperOverflowAction" />
  371. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  372. </xs:choice>
  373. <xs:attribute name="name" type="xs:string">
  374. <xs:annotation>
  375. <xs:documentation>Name of the target.</xs:documentation>
  376. </xs:annotation>
  377. </xs:attribute>
  378. <xs:attribute name="bufferSize" type="xs:integer">
  379. <xs:annotation>
  380. <xs:documentation>Number of log events to be buffered.</xs:documentation>
  381. </xs:annotation>
  382. </xs:attribute>
  383. <xs:attribute name="flushTimeout" type="xs:integer">
  384. <xs:annotation>
  385. <xs:documentation>Timeout (in milliseconds) after which the contents of buffer will be flushed if there's no write in the specified period of time. Use -1 to disable timed flushes.</xs:documentation>
  386. </xs:annotation>
  387. </xs:attribute>
  388. <xs:attribute name="slidingTimeout" type="xs:boolean">
  389. <xs:annotation>
  390. <xs:documentation>Indicates whether to use sliding timeout.</xs:documentation>
  391. </xs:annotation>
  392. </xs:attribute>
  393. <xs:attribute name="overflowAction" type="NLog.Targets.Wrappers.BufferingTargetWrapperOverflowAction">
  394. <xs:annotation>
  395. <xs:documentation>Action to take if the buffer overflows.</xs:documentation>
  396. </xs:annotation>
  397. </xs:attribute>
  398. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  399. <xs:annotation>
  400. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  401. </xs:annotation>
  402. </xs:attribute>
  403. </xs:extension>
  404. </xs:complexContent>
  405. </xs:complexType>
  406. <xs:simpleType name="NLog.Targets.Wrappers.BufferingTargetWrapperOverflowAction">
  407. <xs:restriction base="xs:string">
  408. <xs:enumeration value="Flush" />
  409. <xs:enumeration value="Discard" />
  410. </xs:restriction>
  411. </xs:simpleType>
  412. <xs:complexType name="Chainsaw">
  413. <xs:complexContent>
  414. <xs:extension base="Target">
  415. <xs:choice minOccurs="0" maxOccurs="unbounded">
  416. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  417. <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
  418. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  419. <xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="LineEndingMode" />
  420. <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  421. <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  422. <xs:element name="onConnectionOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetConnectionsOverflowAction" />
  423. <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
  424. <xs:element name="maxConnections" minOccurs="0" maxOccurs="1" type="xs:integer" />
  425. <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  426. <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  427. <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
  428. <xs:element name="maxQueueSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  429. <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
  430. <xs:element name="ndcItemSeparator" minOccurs="0" maxOccurs="1" type="xs:string" />
  431. <xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  432. <xs:element name="includeMdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  433. <xs:element name="includeNdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  434. <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  435. <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  436. <xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  437. <xs:element name="includeAllProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  438. <xs:element name="appInfo" minOccurs="0" maxOccurs="1" type="xs:string" />
  439. <xs:element name="includeNLogData" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  440. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  441. </xs:choice>
  442. <xs:attribute name="name" type="xs:string">
  443. <xs:annotation>
  444. <xs:documentation>Name of the target.</xs:documentation>
  445. </xs:annotation>
  446. </xs:attribute>
  447. <xs:attribute name="encoding" type="xs:string">
  448. <xs:annotation>
  449. <xs:documentation>Encoding to be used.</xs:documentation>
  450. </xs:annotation>
  451. </xs:attribute>
  452. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  453. <xs:annotation>
  454. <xs:documentation>Instance of that is used to format log messages.</xs:documentation>
  455. </xs:annotation>
  456. </xs:attribute>
  457. <xs:attribute name="lineEnding" type="LineEndingMode">
  458. <xs:annotation>
  459. <xs:documentation>End of line value if a newline is appended at the end of log message .</xs:documentation>
  460. </xs:annotation>
  461. </xs:attribute>
  462. <xs:attribute name="maxMessageSize" type="xs:integer">
  463. <xs:annotation>
  464. <xs:documentation>Maximum message size in bytes.</xs:documentation>
  465. </xs:annotation>
  466. </xs:attribute>
  467. <xs:attribute name="newLine" type="xs:boolean">
  468. <xs:annotation>
  469. <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
  470. </xs:annotation>
  471. </xs:attribute>
  472. <xs:attribute name="onConnectionOverflow" type="NLog.Targets.NetworkTargetConnectionsOverflowAction">
  473. <xs:annotation>
  474. <xs:documentation>Action that should be taken if the will be more connections than .</xs:documentation>
  475. </xs:annotation>
  476. </xs:attribute>
  477. <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
  478. <xs:annotation>
  479. <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
  480. </xs:annotation>
  481. </xs:attribute>
  482. <xs:attribute name="maxConnections" type="xs:integer">
  483. <xs:annotation>
  484. <xs:documentation>Maximum current connections. 0 = no maximum.</xs:documentation>
  485. </xs:annotation>
  486. </xs:attribute>
  487. <xs:attribute name="keepConnection" type="xs:boolean">
  488. <xs:annotation>
  489. <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
  490. </xs:annotation>
  491. </xs:attribute>
  492. <xs:attribute name="connectionCacheSize" type="xs:integer">
  493. <xs:annotation>
  494. <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
  495. </xs:annotation>
  496. </xs:attribute>
  497. <xs:attribute name="address" type="SimpleLayoutAttribute">
  498. <xs:annotation>
  499. <xs:documentation>Network address.</xs:documentation>
  500. </xs:annotation>
  501. </xs:attribute>
  502. <xs:attribute name="maxQueueSize" type="xs:integer">
  503. <xs:annotation>
  504. <xs:documentation>Maximum queue size.</xs:documentation>
  505. </xs:annotation>
  506. </xs:attribute>
  507. <xs:attribute name="ndcItemSeparator" type="xs:string">
  508. <xs:annotation>
  509. <xs:documentation>NDC item separator.</xs:documentation>
  510. </xs:annotation>
  511. </xs:attribute>
  512. <xs:attribute name="includeSourceInfo" type="xs:boolean">
  513. <xs:annotation>
  514. <xs:documentation>Indicates whether to include source info (file name and line number) in the information sent over the network.</xs:documentation>
  515. </xs:annotation>
  516. </xs:attribute>
  517. <xs:attribute name="includeMdlc" type="xs:boolean">
  518. <xs:annotation>
  519. <xs:documentation>Indicates whether to include dictionary contents.</xs:documentation>
  520. </xs:annotation>
  521. </xs:attribute>
  522. <xs:attribute name="includeNdlc" type="xs:boolean">
  523. <xs:annotation>
  524. <xs:documentation>Indicates whether to include contents of the stack.</xs:documentation>
  525. </xs:annotation>
  526. </xs:attribute>
  527. <xs:attribute name="includeNdc" type="xs:boolean">
  528. <xs:annotation>
  529. <xs:documentation>Indicates whether to include stack contents.</xs:documentation>
  530. </xs:annotation>
  531. </xs:attribute>
  532. <xs:attribute name="includeMdc" type="xs:boolean">
  533. <xs:annotation>
  534. <xs:documentation>Indicates whether to include dictionary contents.</xs:documentation>
  535. </xs:annotation>
  536. </xs:attribute>
  537. <xs:attribute name="includeCallSite" type="xs:boolean">
  538. <xs:annotation>
  539. <xs:documentation>Indicates whether to include call site (class and method name) in the information sent over the network.</xs:documentation>
  540. </xs:annotation>
  541. </xs:attribute>
  542. <xs:attribute name="includeAllProperties" type="xs:boolean">
  543. <xs:annotation>
  544. <xs:documentation>Option to include all properties from the log events</xs:documentation>
  545. </xs:annotation>
  546. </xs:attribute>
  547. <xs:attribute name="appInfo" type="xs:string">
  548. <xs:annotation>
  549. <xs:documentation>AppInfo field. By default it's the friendly name of the current AppDomain.</xs:documentation>
  550. </xs:annotation>
  551. </xs:attribute>
  552. <xs:attribute name="includeNLogData" type="xs:boolean">
  553. <xs:annotation>
  554. <xs:documentation>Indicates whether to include NLog-specific extensions to log4j schema.</xs:documentation>
  555. </xs:annotation>
  556. </xs:attribute>
  557. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  558. <xs:annotation>
  559. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  560. </xs:annotation>
  561. </xs:attribute>
  562. </xs:extension>
  563. </xs:complexContent>
  564. </xs:complexType>
  565. <xs:simpleType name="NLog.Targets.NetworkTargetConnectionsOverflowAction">
  566. <xs:restriction base="xs:string">
  567. <xs:enumeration value="AllowNewConnnection" />
  568. <xs:enumeration value="DiscardMessage" />
  569. <xs:enumeration value="Block" />
  570. </xs:restriction>
  571. </xs:simpleType>
  572. <xs:simpleType name="NLog.Targets.NetworkTargetOverflowAction">
  573. <xs:restriction base="xs:string">
  574. <xs:enumeration value="Error" />
  575. <xs:enumeration value="Split" />
  576. <xs:enumeration value="Discard" />
  577. </xs:restriction>
  578. </xs:simpleType>
  579. <xs:complexType name="NLog.Targets.NLogViewerParameterInfo">
  580. <xs:choice minOccurs="0" maxOccurs="unbounded">
  581. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  582. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  583. </xs:choice>
  584. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  585. <xs:annotation>
  586. <xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
  587. </xs:annotation>
  588. </xs:attribute>
  589. <xs:attribute name="name" type="xs:string">
  590. <xs:annotation>
  591. <xs:documentation>Viewer parameter name.</xs:documentation>
  592. </xs:annotation>
  593. </xs:attribute>
  594. </xs:complexType>
  595. <xs:complexType name="ColoredConsole">
  596. <xs:complexContent>
  597. <xs:extension base="Target">
  598. <xs:choice minOccurs="0" maxOccurs="unbounded">
  599. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  600. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  601. <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
  602. <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
  603. <xs:element name="useDefaultRowHighlightingRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  604. <xs:element name="highlight-row" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleRowHighlightingRule" />
  605. <xs:element name="highlight-word" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleWordHighlightingRule" />
  606. <xs:element name="detectConsoleAvailable" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  607. <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
  608. <xs:element name="errorStream" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  609. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  610. </xs:choice>
  611. <xs:attribute name="name" type="xs:string">
  612. <xs:annotation>
  613. <xs:documentation>Name of the target.</xs:documentation>
  614. </xs:annotation>
  615. </xs:attribute>
  616. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  617. <xs:annotation>
  618. <xs:documentation>Text to be rendered.</xs:documentation>
  619. </xs:annotation>
  620. </xs:attribute>
  621. <xs:attribute name="header" type="SimpleLayoutAttribute">
  622. <xs:annotation>
  623. <xs:documentation>Header.</xs:documentation>
  624. </xs:annotation>
  625. </xs:attribute>
  626. <xs:attribute name="footer" type="SimpleLayoutAttribute">
  627. <xs:annotation>
  628. <xs:documentation>Footer.</xs:documentation>
  629. </xs:annotation>
  630. </xs:attribute>
  631. <xs:attribute name="useDefaultRowHighlightingRules" type="xs:boolean">
  632. <xs:annotation>
  633. <xs:documentation>Indicates whether to use default row highlighting rules.</xs:documentation>
  634. </xs:annotation>
  635. </xs:attribute>
  636. <xs:attribute name="detectConsoleAvailable" type="xs:boolean">
  637. <xs:annotation>
  638. <xs:documentation>Indicates whether to auto-check if the console is available. - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App)</xs:documentation>
  639. </xs:annotation>
  640. </xs:attribute>
  641. <xs:attribute name="encoding" type="xs:string">
  642. <xs:annotation>
  643. <xs:documentation>The encoding for writing messages to the .</xs:documentation>
  644. </xs:annotation>
  645. </xs:attribute>
  646. <xs:attribute name="errorStream" type="xs:boolean">
  647. <xs:annotation>
  648. <xs:documentation>Indicates whether the error stream (stderr) should be used instead of the output stream (stdout).</xs:documentation>
  649. </xs:annotation>
  650. </xs:attribute>
  651. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  652. <xs:annotation>
  653. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  654. </xs:annotation>
  655. </xs:attribute>
  656. </xs:extension>
  657. </xs:complexContent>
  658. </xs:complexType>
  659. <xs:simpleType name="NLog.Targets.ConsoleOutputColor">
  660. <xs:restriction base="xs:string">
  661. <xs:enumeration value="Black" />
  662. <xs:enumeration value="DarkBlue" />
  663. <xs:enumeration value="DarkGreen" />
  664. <xs:enumeration value="DarkCyan" />
  665. <xs:enumeration value="DarkRed" />
  666. <xs:enumeration value="DarkMagenta" />
  667. <xs:enumeration value="DarkYellow" />
  668. <xs:enumeration value="Gray" />
  669. <xs:enumeration value="DarkGray" />
  670. <xs:enumeration value="Blue" />
  671. <xs:enumeration value="Green" />
  672. <xs:enumeration value="Cyan" />
  673. <xs:enumeration value="Red" />
  674. <xs:enumeration value="Magenta" />
  675. <xs:enumeration value="Yellow" />
  676. <xs:enumeration value="White" />
  677. <xs:enumeration value="NoChange" />
  678. </xs:restriction>
  679. </xs:simpleType>
  680. <xs:complexType name="NLog.Targets.ConsoleRowHighlightingRule">
  681. <xs:choice minOccurs="0" maxOccurs="unbounded">
  682. <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
  683. <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
  684. <xs:element name="foregroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
  685. </xs:choice>
  686. <xs:attribute name="condition" type="Condition">
  687. <xs:annotation>
  688. <xs:documentation>Condition that must be met in order to set the specified foreground and background color.</xs:documentation>
  689. </xs:annotation>
  690. </xs:attribute>
  691. <xs:attribute name="backgroundColor" type="NLog.Targets.ConsoleOutputColor">
  692. <xs:annotation>
  693. <xs:documentation>Background color.</xs:documentation>
  694. </xs:annotation>
  695. </xs:attribute>
  696. <xs:attribute name="foregroundColor" type="NLog.Targets.ConsoleOutputColor">
  697. <xs:annotation>
  698. <xs:documentation>Foreground color.</xs:documentation>
  699. </xs:annotation>
  700. </xs:attribute>
  701. </xs:complexType>
  702. <xs:complexType name="NLog.Targets.ConsoleWordHighlightingRule">
  703. <xs:choice minOccurs="0" maxOccurs="unbounded">
  704. <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  705. <xs:element name="regex" minOccurs="0" maxOccurs="1" type="xs:string" />
  706. <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
  707. <xs:element name="wholeWords" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  708. <xs:element name="compileRegex" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  709. <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
  710. <xs:element name="foregroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
  711. </xs:choice>
  712. <xs:attribute name="ignoreCase" type="xs:boolean">
  713. <xs:annotation>
  714. <xs:documentation>Indicates whether to ignore case when comparing texts.</xs:documentation>
  715. </xs:annotation>
  716. </xs:attribute>
  717. <xs:attribute name="regex" type="xs:string">
  718. <xs:annotation>
  719. <xs:documentation>Regular expression to be matched. You must specify either text or regex.</xs:documentation>
  720. </xs:annotation>
  721. </xs:attribute>
  722. <xs:attribute name="text" type="xs:string">
  723. <xs:annotation>
  724. <xs:documentation>Text to be matched. You must specify either text or regex.</xs:documentation>
  725. </xs:annotation>
  726. </xs:attribute>
  727. <xs:attribute name="wholeWords" type="xs:boolean">
  728. <xs:annotation>
  729. <xs:documentation>Indicates whether to match whole words only.</xs:documentation>
  730. </xs:annotation>
  731. </xs:attribute>
  732. <xs:attribute name="compileRegex" type="xs:boolean">
  733. <xs:annotation>
  734. <xs:documentation>Compile the ? This can improve the performance, but at the costs of more memory usage. If false, the Regex Cache is used.</xs:documentation>
  735. </xs:annotation>
  736. </xs:attribute>
  737. <xs:attribute name="backgroundColor" type="NLog.Targets.ConsoleOutputColor">
  738. <xs:annotation>
  739. <xs:documentation>Background color.</xs:documentation>
  740. </xs:annotation>
  741. </xs:attribute>
  742. <xs:attribute name="foregroundColor" type="NLog.Targets.ConsoleOutputColor">
  743. <xs:annotation>
  744. <xs:documentation>Foreground color.</xs:documentation>
  745. </xs:annotation>
  746. </xs:attribute>
  747. </xs:complexType>
  748. <xs:complexType name="Console">
  749. <xs:complexContent>
  750. <xs:extension base="Target">
  751. <xs:choice minOccurs="0" maxOccurs="unbounded">
  752. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  753. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  754. <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
  755. <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
  756. <xs:element name="error" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  757. <xs:element name="detectConsoleAvailable" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  758. <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
  759. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  760. </xs:choice>
  761. <xs:attribute name="name" type="xs:string">
  762. <xs:annotation>
  763. <xs:documentation>Name of the target.</xs:documentation>
  764. </xs:annotation>
  765. </xs:attribute>
  766. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  767. <xs:annotation>
  768. <xs:documentation>Text to be rendered.</xs:documentation>
  769. </xs:annotation>
  770. </xs:attribute>
  771. <xs:attribute name="header" type="SimpleLayoutAttribute">
  772. <xs:annotation>
  773. <xs:documentation>Header.</xs:documentation>
  774. </xs:annotation>
  775. </xs:attribute>
  776. <xs:attribute name="footer" type="SimpleLayoutAttribute">
  777. <xs:annotation>
  778. <xs:documentation>Footer.</xs:documentation>
  779. </xs:annotation>
  780. </xs:attribute>
  781. <xs:attribute name="error" type="xs:boolean">
  782. <xs:annotation>
  783. <xs:documentation>Indicates whether to send the log messages to the standard error instead of the standard output.</xs:documentation>
  784. </xs:annotation>
  785. </xs:attribute>
  786. <xs:attribute name="detectConsoleAvailable" type="xs:boolean">
  787. <xs:annotation>
  788. <xs:documentation>Indicates whether to auto-check if the console is available - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App)</xs:documentation>
  789. </xs:annotation>
  790. </xs:attribute>
  791. <xs:attribute name="encoding" type="xs:string">
  792. <xs:annotation>
  793. <xs:documentation>The encoding for writing messages to the .</xs:documentation>
  794. </xs:annotation>
  795. </xs:attribute>
  796. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  797. <xs:annotation>
  798. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  799. </xs:annotation>
  800. </xs:attribute>
  801. </xs:extension>
  802. </xs:complexContent>
  803. </xs:complexType>
  804. <xs:complexType name="Database">
  805. <xs:complexContent>
  806. <xs:extension base="Target">
  807. <xs:choice minOccurs="0" maxOccurs="unbounded">
  808. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  809. <xs:element name="useTransactions" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  810. <xs:element name="dbUserName" minOccurs="0" maxOccurs="1" type="Layout" />
  811. <xs:element name="dbProvider" minOccurs="0" maxOccurs="1" type="xs:string" />
  812. <xs:element name="dbPassword" minOccurs="0" maxOccurs="1" type="Layout" />
  813. <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  814. <xs:element name="dbDatabase" minOccurs="0" maxOccurs="1" type="Layout" />
  815. <xs:element name="connectionStringName" minOccurs="0" maxOccurs="1" type="xs:string" />
  816. <xs:element name="connectionString" minOccurs="0" maxOccurs="1" type="Layout" />
  817. <xs:element name="dbHost" minOccurs="0" maxOccurs="1" type="Layout" />
  818. <xs:element name="installConnectionString" minOccurs="0" maxOccurs="1" type="Layout" />
  819. <xs:element name="install-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
  820. <xs:element name="uninstall-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
  821. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  822. <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseParameterInfo" />
  823. <xs:element name="commandText" minOccurs="0" maxOccurs="1" type="Layout" />
  824. <xs:element name="commandType" minOccurs="0" maxOccurs="1" type="System.Data.CommandType" />
  825. </xs:choice>
  826. <xs:attribute name="name" type="xs:string">
  827. <xs:annotation>
  828. <xs:documentation>Name of the target.</xs:documentation>
  829. </xs:annotation>
  830. </xs:attribute>
  831. <xs:attribute name="useTransactions" type="xs:boolean">
  832. <xs:annotation>
  833. <xs:documentation>Obsolete - value will be ignored! The logging code always runs outside of transaction. Gets or sets a value indicating whether to use database transactions. Some data providers require this.</xs:documentation>
  834. </xs:annotation>
  835. </xs:attribute>
  836. <xs:attribute name="dbUserName" type="SimpleLayoutAttribute">
  837. <xs:annotation>
  838. <xs:documentation>Database user name. If the ConnectionString is not provided this value will be used to construct the "User ID=" part of the connection string.</xs:documentation>
  839. </xs:annotation>
  840. </xs:attribute>
  841. <xs:attribute name="dbProvider" type="xs:string">
  842. <xs:annotation>
  843. <xs:documentation>Name of the database provider.</xs:documentation>
  844. </xs:annotation>
  845. </xs:attribute>
  846. <xs:attribute name="dbPassword" type="SimpleLayoutAttribute">
  847. <xs:annotation>
  848. <xs:documentation>Database password. If the ConnectionString is not provided this value will be used to construct the "Password=" part of the connection string.</xs:documentation>
  849. </xs:annotation>
  850. </xs:attribute>
  851. <xs:attribute name="keepConnection" type="xs:boolean">
  852. <xs:annotation>
  853. <xs:documentation>Indicates whether to keep the database connection open between the log events.</xs:documentation>
  854. </xs:annotation>
  855. </xs:attribute>
  856. <xs:attribute name="dbDatabase" type="SimpleLayoutAttribute">
  857. <xs:annotation>
  858. <xs:documentation>Database name. If the ConnectionString is not provided this value will be used to construct the "Database=" part of the connection string.</xs:documentation>
  859. </xs:annotation>
  860. </xs:attribute>
  861. <xs:attribute name="connectionStringName" type="xs:string">
  862. <xs:annotation>
  863. <xs:documentation>Name of the connection string (as specified in &lt;connectionStrings&gt; configuration section.</xs:documentation>
  864. </xs:annotation>
  865. </xs:attribute>
  866. <xs:attribute name="connectionString" type="SimpleLayoutAttribute">
  867. <xs:annotation>
  868. <xs:documentation>Connection string. When provided, it overrides the values specified in DBHost, DBUserName, DBPassword, DBDatabase.</xs:documentation>
  869. </xs:annotation>
  870. </xs:attribute>
  871. <xs:attribute name="dbHost" type="SimpleLayoutAttribute">
  872. <xs:annotation>
  873. <xs:documentation>Database host name. If the ConnectionString is not provided this value will be used to construct the "Server=" part of the connection string.</xs:documentation>
  874. </xs:annotation>
  875. </xs:attribute>
  876. <xs:attribute name="installConnectionString" type="SimpleLayoutAttribute">
  877. <xs:annotation>
  878. <xs:documentation>Connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.</xs:documentation>
  879. </xs:annotation>
  880. </xs:attribute>
  881. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  882. <xs:annotation>
  883. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  884. </xs:annotation>
  885. </xs:attribute>
  886. <xs:attribute name="commandText" type="SimpleLayoutAttribute">
  887. <xs:annotation>
  888. <xs:documentation>Text of the SQL command to be run on each log level.</xs:documentation>
  889. </xs:annotation>
  890. </xs:attribute>
  891. <xs:attribute name="commandType" type="System.Data.CommandType">
  892. <xs:annotation>
  893. <xs:documentation>Type of the SQL command to be run on each log level.</xs:documentation>
  894. </xs:annotation>
  895. </xs:attribute>
  896. </xs:extension>
  897. </xs:complexContent>
  898. </xs:complexType>
  899. <xs:simpleType name="System.Data.CommandType">
  900. <xs:restriction base="xs:string">
  901. <xs:enumeration value="Text" />
  902. <xs:enumeration value="StoredProcedure" />
  903. <xs:enumeration value="TableDirect" />
  904. </xs:restriction>
  905. </xs:simpleType>
  906. <xs:complexType name="NLog.Targets.DatabaseCommandInfo">
  907. <xs:choice minOccurs="0" maxOccurs="unbounded">
  908. <xs:element name="commandType" minOccurs="0" maxOccurs="1" type="System.Data.CommandType" />
  909. <xs:element name="connectionString" minOccurs="0" maxOccurs="1" type="Layout" />
  910. <xs:element name="ignoreFailures" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  911. <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseParameterInfo" />
  912. <xs:element name="text" minOccurs="0" maxOccurs="1" type="Layout" />
  913. </xs:choice>
  914. <xs:attribute name="commandType" type="System.Data.CommandType">
  915. <xs:annotation>
  916. <xs:documentation>Type of the command.</xs:documentation>
  917. </xs:annotation>
  918. </xs:attribute>
  919. <xs:attribute name="connectionString" type="SimpleLayoutAttribute">
  920. <xs:annotation>
  921. <xs:documentation>Connection string to run the command against. If not provided, connection string from the target is used.</xs:documentation>
  922. </xs:annotation>
  923. </xs:attribute>
  924. <xs:attribute name="ignoreFailures" type="xs:boolean">
  925. <xs:annotation>
  926. <xs:documentation>Indicates whether to ignore failures.</xs:documentation>
  927. </xs:annotation>
  928. </xs:attribute>
  929. <xs:attribute name="text" type="SimpleLayoutAttribute">
  930. <xs:annotation>
  931. <xs:documentation>Command text.</xs:documentation>
  932. </xs:annotation>
  933. </xs:attribute>
  934. </xs:complexType>
  935. <xs:complexType name="NLog.Targets.DatabaseParameterInfo">
  936. <xs:choice minOccurs="0" maxOccurs="unbounded">
  937. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  938. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  939. <xs:element name="precision" minOccurs="0" maxOccurs="1" type="xs:byte" />
  940. <xs:element name="scale" minOccurs="0" maxOccurs="1" type="xs:byte" />
  941. <xs:element name="size" minOccurs="0" maxOccurs="1" type="xs:integer" />
  942. </xs:choice>
  943. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  944. <xs:annotation>
  945. <xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
  946. </xs:annotation>
  947. </xs:attribute>
  948. <xs:attribute name="name" type="xs:string">
  949. <xs:annotation>
  950. <xs:documentation>Database parameter name.</xs:documentation>
  951. </xs:annotation>
  952. </xs:attribute>
  953. <xs:attribute name="precision" type="xs:byte">
  954. <xs:annotation>
  955. <xs:documentation>Database parameter precision.</xs:documentation>
  956. </xs:annotation>
  957. </xs:attribute>
  958. <xs:attribute name="scale" type="xs:byte">
  959. <xs:annotation>
  960. <xs:documentation>Database parameter scale.</xs:documentation>
  961. </xs:annotation>
  962. </xs:attribute>
  963. <xs:attribute name="size" type="xs:integer">
  964. <xs:annotation>
  965. <xs:documentation>Database parameter size.</xs:documentation>
  966. </xs:annotation>
  967. </xs:attribute>
  968. </xs:complexType>
  969. <xs:complexType name="Debugger">
  970. <xs:complexContent>
  971. <xs:extension base="Target">
  972. <xs:choice minOccurs="0" maxOccurs="unbounded">
  973. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  974. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  975. <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
  976. <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
  977. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  978. </xs:choice>
  979. <xs:attribute name="name" type="xs:string">
  980. <xs:annotation>
  981. <xs:documentation>Name of the target.</xs:documentation>
  982. </xs:annotation>
  983. </xs:attribute>
  984. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  985. <xs:annotation>
  986. <xs:documentation>Text to be rendered.</xs:documentation>
  987. </xs:annotation>
  988. </xs:attribute>
  989. <xs:attribute name="header" type="SimpleLayoutAttribute">
  990. <xs:annotation>
  991. <xs:documentation>Header.</xs:documentation>
  992. </xs:annotation>
  993. </xs:attribute>
  994. <xs:attribute name="footer" type="SimpleLayoutAttribute">
  995. <xs:annotation>
  996. <xs:documentation>Footer.</xs:documentation>
  997. </xs:annotation>
  998. </xs:attribute>
  999. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1000. <xs:annotation>
  1001. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1002. </xs:annotation>
  1003. </xs:attribute>
  1004. </xs:extension>
  1005. </xs:complexContent>
  1006. </xs:complexType>
  1007. <xs:complexType name="Debug">
  1008. <xs:complexContent>
  1009. <xs:extension base="Target">
  1010. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1011. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1012. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  1013. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1014. </xs:choice>
  1015. <xs:attribute name="name" type="xs:string">
  1016. <xs:annotation>
  1017. <xs:documentation>Name of the target.</xs:documentation>
  1018. </xs:annotation>
  1019. </xs:attribute>
  1020. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  1021. <xs:annotation>
  1022. <xs:documentation>Layout used to format log messages.</xs:documentation>
  1023. </xs:annotation>
  1024. </xs:attribute>
  1025. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1026. <xs:annotation>
  1027. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1028. </xs:annotation>
  1029. </xs:attribute>
  1030. </xs:extension>
  1031. </xs:complexContent>
  1032. </xs:complexType>
  1033. <xs:complexType name="EventLog">
  1034. <xs:complexContent>
  1035. <xs:extension base="Target">
  1036. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1037. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1038. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  1039. <xs:element name="category" minOccurs="0" maxOccurs="1" type="Layout" />
  1040. <xs:element name="eventId" minOccurs="0" maxOccurs="1" type="Layout" />
  1041. <xs:element name="log" minOccurs="0" maxOccurs="1" type="xs:string" />
  1042. <xs:element name="machineName" minOccurs="0" maxOccurs="1" type="xs:string" />
  1043. <xs:element name="source" minOccurs="0" maxOccurs="1" type="Layout" />
  1044. <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.EventLogTargetOverflowAction" />
  1045. <xs:element name="entryType" minOccurs="0" maxOccurs="1" type="Layout" />
  1046. <xs:element name="maxKilobytes" minOccurs="0" maxOccurs="1" type="xs:long" />
  1047. <xs:element name="maxMessageLength" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1048. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1049. </xs:choice>
  1050. <xs:attribute name="name" type="xs:string">
  1051. <xs:annotation>
  1052. <xs:documentation>Name of the target.</xs:documentation>
  1053. </xs:annotation>
  1054. </xs:attribute>
  1055. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  1056. <xs:annotation>
  1057. <xs:documentation>Layout used to format log messages.</xs:documentation>
  1058. </xs:annotation>
  1059. </xs:attribute>
  1060. <xs:attribute name="category" type="SimpleLayoutAttribute">
  1061. <xs:annotation>
  1062. <xs:documentation>Layout that renders event Category.</xs:documentation>
  1063. </xs:annotation>
  1064. </xs:attribute>
  1065. <xs:attribute name="eventId" type="SimpleLayoutAttribute">
  1066. <xs:annotation>
  1067. <xs:documentation>Layout that renders event ID.</xs:documentation>
  1068. </xs:annotation>
  1069. </xs:attribute>
  1070. <xs:attribute name="log" type="xs:string">
  1071. <xs:annotation>
  1072. <xs:documentation>Name of the Event Log to write to. This can be System, Application or any user-defined name.</xs:documentation>
  1073. </xs:annotation>
  1074. </xs:attribute>
  1075. <xs:attribute name="machineName" type="xs:string">
  1076. <xs:annotation>
  1077. <xs:documentation>Name of the machine on which Event Log service is running.</xs:documentation>
  1078. </xs:annotation>
  1079. </xs:attribute>
  1080. <xs:attribute name="source" type="SimpleLayoutAttribute">
  1081. <xs:annotation>
  1082. <xs:documentation>Value to be used as the event Source.</xs:documentation>
  1083. </xs:annotation>
  1084. </xs:attribute>
  1085. <xs:attribute name="onOverflow" type="NLog.Targets.EventLogTargetOverflowAction">
  1086. <xs:annotation>
  1087. <xs:documentation>Action to take if the message is larger than the option.</xs:documentation>
  1088. </xs:annotation>
  1089. </xs:attribute>
  1090. <xs:attribute name="entryType" type="SimpleLayoutAttribute">
  1091. <xs:annotation>
  1092. <xs:documentation>Optional entrytype. When not set, or when not convertable to then determined by </xs:documentation>
  1093. </xs:annotation>
  1094. </xs:attribute>
  1095. <xs:attribute name="maxKilobytes" type="xs:long">
  1096. <xs:annotation>
  1097. <xs:documentation>Maximum Event log size in kilobytes. If null, the value won't be set. Default is 512 Kilobytes as specified by Eventlog API</xs:documentation>
  1098. </xs:annotation>
  1099. </xs:attribute>
  1100. <xs:attribute name="maxMessageLength" type="xs:integer">
  1101. <xs:annotation>
  1102. <xs:documentation>Message length limit to write to the Event Log.</xs:documentation>
  1103. </xs:annotation>
  1104. </xs:attribute>
  1105. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1106. <xs:annotation>
  1107. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1108. </xs:annotation>
  1109. </xs:attribute>
  1110. </xs:extension>
  1111. </xs:complexContent>
  1112. </xs:complexType>
  1113. <xs:simpleType name="NLog.Targets.EventLogTargetOverflowAction">
  1114. <xs:restriction base="xs:string">
  1115. <xs:enumeration value="Truncate" />
  1116. <xs:enumeration value="Split" />
  1117. <xs:enumeration value="Discard" />
  1118. </xs:restriction>
  1119. </xs:simpleType>
  1120. <xs:complexType name="FallbackGroup">
  1121. <xs:complexContent>
  1122. <xs:extension base="CompoundTargetBase">
  1123. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1124. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1125. <xs:element name="returnToFirstOnSuccess" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1126. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1127. </xs:choice>
  1128. <xs:attribute name="name" type="xs:string">
  1129. <xs:annotation>
  1130. <xs:documentation>Name of the target.</xs:documentation>
  1131. </xs:annotation>
  1132. </xs:attribute>
  1133. <xs:attribute name="returnToFirstOnSuccess" type="xs:boolean">
  1134. <xs:annotation>
  1135. <xs:documentation>Indicates whether to return to the first target after any successful write.</xs:documentation>
  1136. </xs:annotation>
  1137. </xs:attribute>
  1138. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1139. <xs:annotation>
  1140. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1141. </xs:annotation>
  1142. </xs:attribute>
  1143. </xs:extension>
  1144. </xs:complexContent>
  1145. </xs:complexType>
  1146. <xs:complexType name="File">
  1147. <xs:complexContent>
  1148. <xs:extension base="Target">
  1149. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1150. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1151. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  1152. <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
  1153. <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
  1154. <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
  1155. <xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="LineEndingMode" />
  1156. <xs:element name="archiveNumbering" minOccurs="0" maxOccurs="1" type="NLog.Targets.ArchiveNumberingMode" />
  1157. <xs:element name="archiveFileName" minOccurs="0" maxOccurs="1" type="Layout" />
  1158. <xs:element name="archiveEvery" minOccurs="0" maxOccurs="1" type="NLog.Targets.FileArchivePeriod" />
  1159. <xs:element name="archiveAboveSize" minOccurs="0" maxOccurs="1" type="xs:long" />
  1160. <xs:element name="enableArchiveFileCompression" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1161. <xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1162. <xs:element name="forceManaged" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1163. <xs:element name="archiveFileKind" minOccurs="0" maxOccurs="1" type="NLog.Targets.FilePathKind" />
  1164. <xs:element name="cleanupFileName" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1165. <xs:element name="discardAll" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1166. <xs:element name="fileNameKind" minOccurs="0" maxOccurs="1" type="NLog.Targets.FilePathKind" />
  1167. <xs:element name="forceMutexConcurrentWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1168. <xs:element name="maxLogFilenames" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1169. <xs:element name="writeFooterOnArchivingOnly" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1170. <xs:element name="fileName" minOccurs="0" maxOccurs="1" type="Layout" />
  1171. <xs:element name="archiveDateFormat" minOccurs="0" maxOccurs="1" type="xs:string" />
  1172. <xs:element name="archiveOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1173. <xs:element name="createDirs" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1174. <xs:element name="fileAttributes" minOccurs="0" maxOccurs="1" type="NLog.Targets.Win32FileAttributes" />
  1175. <xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1176. <xs:element name="replaceFileContentsOnEachWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1177. <xs:element name="enableFileDelete" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1178. <xs:element name="concurrentWriteAttempts" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1179. <xs:element name="concurrentWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1180. <xs:element name="keepFileOpen" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1181. <xs:element name="networkWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1182. <xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1183. <xs:element name="openFileCacheTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1184. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1185. <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1186. <xs:element name="autoFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1187. <xs:element name="concurrentWriteAttemptDelay" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1188. </xs:choice>
  1189. <xs:attribute name="name" type="xs:string">
  1190. <xs:annotation>
  1191. <xs:documentation>Name of the target.</xs:documentation>
  1192. </xs:annotation>
  1193. </xs:attribute>
  1194. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  1195. <xs:annotation>
  1196. <xs:documentation>Text to be rendered.</xs:documentation>
  1197. </xs:annotation>
  1198. </xs:attribute>
  1199. <xs:attribute name="header" type="SimpleLayoutAttribute">
  1200. <xs:annotation>
  1201. <xs:documentation>Header.</xs:documentation>
  1202. </xs:annotation>
  1203. </xs:attribute>
  1204. <xs:attribute name="footer" type="SimpleLayoutAttribute">
  1205. <xs:annotation>
  1206. <xs:documentation>Footer.</xs:documentation>
  1207. </xs:annotation>
  1208. </xs:attribute>
  1209. <xs:attribute name="encoding" type="xs:string">
  1210. <xs:annotation>
  1211. <xs:documentation>File encoding.</xs:documentation>
  1212. </xs:annotation>
  1213. </xs:attribute>
  1214. <xs:attribute name="lineEnding" type="LineEndingMode">
  1215. <xs:annotation>
  1216. <xs:documentation>Line ending mode.</xs:documentation>
  1217. </xs:annotation>
  1218. </xs:attribute>
  1219. <xs:attribute name="archiveNumbering" type="NLog.Targets.ArchiveNumberingMode">
  1220. <xs:annotation>
  1221. <xs:documentation>Way file archives are numbered.</xs:documentation>
  1222. </xs:annotation>
  1223. </xs:attribute>
  1224. <xs:attribute name="archiveFileName" type="SimpleLayoutAttribute">
  1225. <xs:annotation>
  1226. <xs:documentation>Name of the file to be used for an archive.</xs:documentation>
  1227. </xs:annotation>
  1228. </xs:attribute>
  1229. <xs:attribute name="archiveEvery" type="NLog.Targets.FileArchivePeriod">
  1230. <xs:annotation>
  1231. <xs:documentation>Indicates whether to automatically archive log files every time the specified time passes.</xs:documentation>
  1232. </xs:annotation>
  1233. </xs:attribute>
  1234. <xs:attribute name="archiveAboveSize" type="xs:long">
  1235. <xs:annotation>
  1236. <xs:documentation>Size in bytes above which log files will be automatically archived. Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. Choose: </xs:documentation>
  1237. </xs:annotation>
  1238. </xs:attribute>
  1239. <xs:attribute name="enableArchiveFileCompression" type="xs:boolean">
  1240. <xs:annotation>
  1241. <xs:documentation>Indicates whether to compress archive files into the zip archive format.</xs:documentation>
  1242. </xs:annotation>
  1243. </xs:attribute>
  1244. <xs:attribute name="maxArchiveFiles" type="xs:integer">
  1245. <xs:annotation>
  1246. <xs:documentation>Maximum number of archive files that should be kept.</xs:documentation>
  1247. </xs:annotation>
  1248. </xs:attribute>
  1249. <xs:attribute name="forceManaged" type="xs:boolean">
  1250. <xs:annotation>
  1251. <xs:documentation>Gets or set a value indicating whether a managed file stream is forced, instead of using the native implementation.</xs:documentation>
  1252. </xs:annotation>
  1253. </xs:attribute>
  1254. <xs:attribute name="archiveFileKind" type="NLog.Targets.FilePathKind">
  1255. <xs:annotation>
  1256. <xs:documentation>Is the an absolute or relative path?</xs:documentation>
  1257. </xs:annotation>
  1258. </xs:attribute>
  1259. <xs:attribute name="cleanupFileName" type="xs:boolean">
  1260. <xs:annotation>
  1261. <xs:documentation>Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong.</xs:documentation>
  1262. </xs:annotation>
  1263. </xs:attribute>
  1264. <xs:attribute name="discardAll" type="xs:boolean">
  1265. <xs:annotation>
  1266. <xs:documentation>Whether or not this target should just discard all data that its asked to write. Mostly used for when testing NLog Stack except final write</xs:documentation>
  1267. </xs:annotation>
  1268. </xs:attribute>
  1269. <xs:attribute name="fileNameKind" type="NLog.Targets.FilePathKind">
  1270. <xs:annotation>
  1271. <xs:documentation>Is the an absolute or relative path?</xs:documentation>
  1272. </xs:annotation>
  1273. </xs:attribute>
  1274. <xs:attribute name="forceMutexConcurrentWrites" type="xs:boolean">
  1275. <xs:annotation>
  1276. <xs:documentation>Value indicationg whether file creation calls should be synchronized by a system global mutex.</xs:documentation>
  1277. </xs:annotation>
  1278. </xs:attribute>
  1279. <xs:attribute name="maxLogFilenames" type="xs:integer">
  1280. <xs:annotation>
  1281. <xs:documentation>Maximum number of log filenames that should be stored as existing.</xs:documentation>
  1282. </xs:annotation>
  1283. </xs:attribute>
  1284. <xs:attribute name="writeFooterOnArchivingOnly" type="xs:boolean">
  1285. <xs:annotation>
  1286. <xs:documentation>Indicates whether the footer should be written only when the file is archived.</xs:documentation>
  1287. </xs:annotation>
  1288. </xs:attribute>
  1289. <xs:attribute name="fileName" type="SimpleLayoutAttribute">
  1290. <xs:annotation>
  1291. <xs:documentation>Name of the file to write to.</xs:documentation>
  1292. </xs:annotation>
  1293. </xs:attribute>
  1294. <xs:attribute name="archiveDateFormat" type="xs:string">
  1295. <xs:annotation>
  1296. <xs:documentation>Value specifying the date format to use when archiving files.</xs:documentation>
  1297. </xs:annotation>
  1298. </xs:attribute>
  1299. <xs:attribute name="archiveOldFileOnStartup" type="xs:boolean">
  1300. <xs:annotation>
  1301. <xs:documentation>Indicates whether to archive old log file on startup.</xs:documentation>
  1302. </xs:annotation>
  1303. </xs:attribute>
  1304. <xs:attribute name="createDirs" type="xs:boolean">
  1305. <xs:annotation>
  1306. <xs:documentation>Indicates whether to create directories if they do not exist.</xs:documentation>
  1307. </xs:annotation>
  1308. </xs:attribute>
  1309. <xs:attribute name="fileAttributes" type="NLog.Targets.Win32FileAttributes">
  1310. <xs:annotation>
  1311. <xs:documentation>File attributes (Windows only).</xs:documentation>
  1312. </xs:annotation>
  1313. </xs:attribute>
  1314. <xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
  1315. <xs:annotation>
  1316. <xs:documentation>Indicates whether to delete old log file on startup.</xs:documentation>
  1317. </xs:annotation>
  1318. </xs:attribute>
  1319. <xs:attribute name="replaceFileContentsOnEachWrite" type="xs:boolean">
  1320. <xs:annotation>
  1321. <xs:documentation>Indicates whether to replace file contents on each write instead of appending log message at the end.</xs:documentation>
  1322. </xs:annotation>
  1323. </xs:attribute>
  1324. <xs:attribute name="enableFileDelete" type="xs:boolean">
  1325. <xs:annotation>
  1326. <xs:documentation>Indicates whether to enable log file(s) to be deleted.</xs:documentation>
  1327. </xs:annotation>
  1328. </xs:attribute>
  1329. <xs:attribute name="concurrentWriteAttempts" type="xs:integer">
  1330. <xs:annotation>
  1331. <xs:documentation>Number of times the write is appended on the file before NLog discards the log message.</xs:documentation>
  1332. </xs:annotation>
  1333. </xs:attribute>
  1334. <xs:attribute name="concurrentWrites" type="xs:boolean">
  1335. <xs:annotation>
  1336. <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on the same host.</xs:documentation>
  1337. </xs:annotation>
  1338. </xs:attribute>
  1339. <xs:attribute name="keepFileOpen" type="xs:boolean">
  1340. <xs:annotation>
  1341. <xs:documentation>Indicates whether to keep log file open instead of opening and closing it on each logging event.</xs:documentation>
  1342. </xs:annotation>
  1343. </xs:attribute>
  1344. <xs:attribute name="networkWrites" type="xs:boolean">
  1345. <xs:annotation>
  1346. <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on different network hosts.</xs:documentation>
  1347. </xs:annotation>
  1348. </xs:attribute>
  1349. <xs:attribute name="openFileCacheSize" type="xs:integer">
  1350. <xs:annotation>
  1351. <xs:documentation>Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger).</xs:documentation>
  1352. </xs:annotation>
  1353. </xs:attribute>
  1354. <xs:attribute name="openFileCacheTimeout" type="xs:integer">
  1355. <xs:annotation>
  1356. <xs:documentation>Maximum number of seconds that files are kept open. If this number is negative the files are not automatically closed after a period of inactivity.</xs:documentation>
  1357. </xs:annotation>
  1358. </xs:attribute>
  1359. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1360. <xs:annotation>
  1361. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1362. </xs:annotation>
  1363. </xs:attribute>
  1364. <xs:attribute name="bufferSize" type="xs:integer">
  1365. <xs:annotation>
  1366. <xs:documentation>Log file buffer size in bytes.</xs:documentation>
  1367. </xs:annotation>
  1368. </xs:attribute>
  1369. <xs:attribute name="autoFlush" type="xs:boolean">
  1370. <xs:annotation>
  1371. <xs:documentation>Indicates whether to automatically flush the file buffers after each log message.</xs:documentation>
  1372. </xs:annotation>
  1373. </xs:attribute>
  1374. <xs:attribute name="concurrentWriteAttemptDelay" type="xs:integer">
  1375. <xs:annotation>
  1376. <xs:documentation>Delay in milliseconds to wait before attempting to write to the file again.</xs:documentation>
  1377. </xs:annotation>
  1378. </xs:attribute>
  1379. </xs:extension>
  1380. </xs:complexContent>
  1381. </xs:complexType>
  1382. <xs:simpleType name="NLog.Targets.ArchiveNumberingMode">
  1383. <xs:restriction base="xs:string">
  1384. <xs:enumeration value="Sequence" />
  1385. <xs:enumeration value="Rolling" />
  1386. <xs:enumeration value="Date" />
  1387. <xs:enumeration value="DateAndSequence" />
  1388. </xs:restriction>
  1389. </xs:simpleType>
  1390. <xs:simpleType name="NLog.Targets.FileArchivePeriod">
  1391. <xs:restriction base="xs:string">
  1392. <xs:enumeration value="None" />
  1393. <xs:enumeration value="Year" />
  1394. <xs:enumeration value="Month" />
  1395. <xs:enumeration value="Day" />
  1396. <xs:enumeration value="Hour" />
  1397. <xs:enumeration value="Minute" />
  1398. <xs:enumeration value="Sunday" />
  1399. <xs:enumeration value="Monday" />
  1400. <xs:enumeration value="Tuesday" />
  1401. <xs:enumeration value="Wednesday" />
  1402. <xs:enumeration value="Thursday" />
  1403. <xs:enumeration value="Friday" />
  1404. <xs:enumeration value="Saturday" />
  1405. </xs:restriction>
  1406. </xs:simpleType>
  1407. <xs:simpleType name="NLog.Targets.FilePathKind">
  1408. <xs:restriction base="xs:string">
  1409. <xs:enumeration value="Unknown" />
  1410. <xs:enumeration value="Relative" />
  1411. <xs:enumeration value="Absolute" />
  1412. </xs:restriction>
  1413. </xs:simpleType>
  1414. <xs:simpleType name="NLog.Targets.Win32FileAttributes">
  1415. <xs:restriction base="xs:string">
  1416. <xs:enumeration value="ReadOnly" />
  1417. <xs:enumeration value="Hidden" />
  1418. <xs:enumeration value="System" />
  1419. <xs:enumeration value="Archive" />
  1420. <xs:enumeration value="Device" />
  1421. <xs:enumeration value="Normal" />
  1422. <xs:enumeration value="Temporary" />
  1423. <xs:enumeration value="SparseFile" />
  1424. <xs:enumeration value="ReparsePoint" />
  1425. <xs:enumeration value="Compressed" />
  1426. <xs:enumeration value="NotContentIndexed" />
  1427. <xs:enumeration value="Encrypted" />
  1428. <xs:enumeration value="WriteThrough" />
  1429. <xs:enumeration value="NoBuffering" />
  1430. <xs:enumeration value="DeleteOnClose" />
  1431. <xs:enumeration value="PosixSemantics" />
  1432. </xs:restriction>
  1433. </xs:simpleType>
  1434. <xs:complexType name="FilteringWrapper">
  1435. <xs:complexContent>
  1436. <xs:extension base="WrapperTargetBase">
  1437. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1438. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1439. <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
  1440. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1441. </xs:choice>
  1442. <xs:attribute name="name" type="xs:string">
  1443. <xs:annotation>
  1444. <xs:documentation>Name of the target.</xs:documentation>
  1445. </xs:annotation>
  1446. </xs:attribute>
  1447. <xs:attribute name="condition" type="Condition">
  1448. <xs:annotation>
  1449. <xs:documentation>Condition expression. Log events who meet this condition will be forwarded to the wrapped target.</xs:documentation>
  1450. </xs:annotation>
  1451. </xs:attribute>
  1452. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1453. <xs:annotation>
  1454. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1455. </xs:annotation>
  1456. </xs:attribute>
  1457. </xs:extension>
  1458. </xs:complexContent>
  1459. </xs:complexType>
  1460. <xs:complexType name="ImpersonatingWrapper">
  1461. <xs:complexContent>
  1462. <xs:extension base="WrapperTargetBase">
  1463. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1464. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1465. <xs:element name="domain" minOccurs="0" maxOccurs="1" type="xs:string" />
  1466. <xs:element name="impersonationLevel" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.SecurityImpersonationLevel" />
  1467. <xs:element name="logOnProvider" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.LogOnProviderType" />
  1468. <xs:element name="logOnType" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.SecurityLogOnType" />
  1469. <xs:element name="password" minOccurs="0" maxOccurs="1" type="xs:string" />
  1470. <xs:element name="revertToSelf" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1471. <xs:element name="userName" minOccurs="0" maxOccurs="1" type="xs:string" />
  1472. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1473. </xs:choice>
  1474. <xs:attribute name="name" type="xs:string">
  1475. <xs:annotation>
  1476. <xs:documentation>Name of the target.</xs:documentation>
  1477. </xs:annotation>
  1478. </xs:attribute>
  1479. <xs:attribute name="domain" type="xs:string">
  1480. <xs:annotation>
  1481. <xs:documentation>Windows domain name to change context to.</xs:documentation>
  1482. </xs:annotation>
  1483. </xs:attribute>
  1484. <xs:attribute name="impersonationLevel" type="NLog.Targets.Wrappers.SecurityImpersonationLevel">
  1485. <xs:annotation>
  1486. <xs:documentation>Required impersonation level.</xs:documentation>
  1487. </xs:annotation>
  1488. </xs:attribute>
  1489. <xs:attribute name="logOnProvider" type="NLog.Targets.Wrappers.LogOnProviderType">
  1490. <xs:annotation>
  1491. <xs:documentation>Type of the logon provider.</xs:documentation>
  1492. </xs:annotation>
  1493. </xs:attribute>
  1494. <xs:attribute name="logOnType" type="NLog.Targets.Wrappers.SecurityLogOnType">
  1495. <xs:annotation>
  1496. <xs:documentation>Logon Type.</xs:documentation>
  1497. </xs:annotation>
  1498. </xs:attribute>
  1499. <xs:attribute name="password" type="xs:string">
  1500. <xs:annotation>
  1501. <xs:documentation>User account password.</xs:documentation>
  1502. </xs:annotation>
  1503. </xs:attribute>
  1504. <xs:attribute name="revertToSelf" type="xs:boolean">
  1505. <xs:annotation>
  1506. <xs:documentation>Indicates whether to revert to the credentials of the process instead of impersonating another user.</xs:documentation>
  1507. </xs:annotation>
  1508. </xs:attribute>
  1509. <xs:attribute name="userName" type="xs:string">
  1510. <xs:annotation>
  1511. <xs:documentation>Username to change context to.</xs:documentation>
  1512. </xs:annotation>
  1513. </xs:attribute>
  1514. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1515. <xs:annotation>
  1516. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1517. </xs:annotation>
  1518. </xs:attribute>
  1519. </xs:extension>
  1520. </xs:complexContent>
  1521. </xs:complexType>
  1522. <xs:simpleType name="NLog.Targets.Wrappers.SecurityImpersonationLevel">
  1523. <xs:restriction base="xs:string">
  1524. <xs:enumeration value="Anonymous" />
  1525. <xs:enumeration value="Identification" />
  1526. <xs:enumeration value="Impersonation" />
  1527. <xs:enumeration value="Delegation" />
  1528. </xs:restriction>
  1529. </xs:simpleType>
  1530. <xs:simpleType name="NLog.Targets.Wrappers.LogOnProviderType">
  1531. <xs:restriction base="xs:string">
  1532. <xs:enumeration value="Default" />
  1533. </xs:restriction>
  1534. </xs:simpleType>
  1535. <xs:simpleType name="NLog.Targets.Wrappers.SecurityLogOnType">
  1536. <xs:restriction base="xs:string">
  1537. <xs:enumeration value="Interactive" />
  1538. <xs:enumeration value="Network" />
  1539. <xs:enumeration value="Batch" />
  1540. <xs:enumeration value="Service" />
  1541. <xs:enumeration value="NetworkClearText" />
  1542. <xs:enumeration value="NewCredentials" />
  1543. </xs:restriction>
  1544. </xs:simpleType>
  1545. <xs:complexType name="LimitingWrapper">
  1546. <xs:complexContent>
  1547. <xs:extension base="WrapperTargetBase">
  1548. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1549. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1550. <xs:element name="interval" minOccurs="0" maxOccurs="1" type="xs:string" />
  1551. <xs:element name="messageLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1552. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1553. </xs:choice>
  1554. <xs:attribute name="name" type="xs:string">
  1555. <xs:annotation>
  1556. <xs:documentation>Name of the target.</xs:documentation>
  1557. </xs:annotation>
  1558. </xs:attribute>
  1559. <xs:attribute name="interval" type="xs:string">
  1560. <xs:annotation>
  1561. <xs:documentation>Interval in which messages will be written up to the number of messages.</xs:documentation>
  1562. </xs:annotation>
  1563. </xs:attribute>
  1564. <xs:attribute name="messageLimit" type="xs:integer">
  1565. <xs:annotation>
  1566. <xs:documentation>Maximum allowed number of messages written per .</xs:documentation>
  1567. </xs:annotation>
  1568. </xs:attribute>
  1569. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1570. <xs:annotation>
  1571. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1572. </xs:annotation>
  1573. </xs:attribute>
  1574. </xs:extension>
  1575. </xs:complexContent>
  1576. </xs:complexType>
  1577. <xs:complexType name="LogReceiverService">
  1578. <xs:complexContent>
  1579. <xs:extension base="Target">
  1580. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1581. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1582. <xs:element name="endpointAddress" minOccurs="0" maxOccurs="1" type="xs:string" />
  1583. <xs:element name="endpointConfigurationName" minOccurs="0" maxOccurs="1" type="xs:string" />
  1584. <xs:element name="useOneWayContract" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1585. <xs:element name="clientId" minOccurs="0" maxOccurs="1" type="Layout" />
  1586. <xs:element name="includeEventProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1587. <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
  1588. <xs:element name="useBinaryEncoding" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1589. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1590. </xs:choice>
  1591. <xs:attribute name="name" type="xs:string">
  1592. <xs:annotation>
  1593. <xs:documentation>Name of the target.</xs:documentation>
  1594. </xs:annotation>
  1595. </xs:attribute>
  1596. <xs:attribute name="endpointAddress" type="xs:string">
  1597. <xs:annotation>
  1598. <xs:documentation>Endpoint address.</xs:documentation>
  1599. </xs:annotation>
  1600. </xs:attribute>
  1601. <xs:attribute name="endpointConfigurationName" type="xs:string">
  1602. <xs:annotation>
  1603. <xs:documentation>Name of the endpoint configuration in WCF configuration file.</xs:documentation>
  1604. </xs:annotation>
  1605. </xs:attribute>
  1606. <xs:attribute name="useOneWayContract" type="xs:boolean">
  1607. <xs:annotation>
  1608. <xs:documentation>Indicates whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply)</xs:documentation>
  1609. </xs:annotation>
  1610. </xs:attribute>
  1611. <xs:attribute name="clientId" type="SimpleLayoutAttribute">
  1612. <xs:annotation>
  1613. <xs:documentation>Client ID.</xs:documentation>
  1614. </xs:annotation>
  1615. </xs:attribute>
  1616. <xs:attribute name="includeEventProperties" type="xs:boolean">
  1617. <xs:annotation>
  1618. <xs:documentation>Indicates whether to include per-event properties in the payload sent to the server.</xs:documentation>
  1619. </xs:annotation>
  1620. </xs:attribute>
  1621. <xs:attribute name="useBinaryEncoding" type="xs:boolean">
  1622. <xs:annotation>
  1623. <xs:documentation>Indicates whether to use binary message encoding.</xs:documentation>
  1624. </xs:annotation>
  1625. </xs:attribute>
  1626. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1627. <xs:annotation>
  1628. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1629. </xs:annotation>
  1630. </xs:attribute>
  1631. </xs:extension>
  1632. </xs:complexContent>
  1633. </xs:complexType>
  1634. <xs:complexType name="NLog.Targets.MethodCallParameter">
  1635. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1636. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  1637. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1638. <xs:element name="parameterType" minOccurs="0" maxOccurs="1" type="xs:string" />
  1639. <xs:element name="type" minOccurs="0" maxOccurs="1" type="xs:string" />
  1640. <xs:element name="enableGroupLayout" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1641. </xs:choice>
  1642. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  1643. <xs:annotation>
  1644. <xs:documentation>Layout that should be use to calculate the value for the parameter.</xs:documentation>
  1645. </xs:annotation>
  1646. </xs:attribute>
  1647. <xs:attribute name="name" type="xs:string">
  1648. <xs:annotation>
  1649. <xs:documentation>Name of the parameter.</xs:documentation>
  1650. </xs:annotation>
  1651. </xs:attribute>
  1652. <xs:attribute name="parameterType" type="xs:string">
  1653. <xs:annotation>
  1654. <xs:documentation>Type of the parameter.</xs:documentation>
  1655. </xs:annotation>
  1656. </xs:attribute>
  1657. <xs:attribute name="type" type="xs:string">
  1658. <xs:annotation>
  1659. <xs:documentation>Type of the parameter. Obsolete alias for </xs:documentation>
  1660. </xs:annotation>
  1661. </xs:attribute>
  1662. <xs:attribute name="enableGroupLayout" type="xs:boolean">
  1663. <xs:annotation>
  1664. <xs:documentation>Parameter can combine multiple LogEvents into a single parameter value</xs:documentation>
  1665. </xs:annotation>
  1666. </xs:attribute>
  1667. </xs:complexType>
  1668. <xs:complexType name="Mail">
  1669. <xs:complexContent>
  1670. <xs:extension base="Target">
  1671. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1672. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1673. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  1674. <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
  1675. <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
  1676. <xs:element name="html" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1677. <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
  1678. <xs:element name="addNewLines" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1679. <xs:element name="cc" minOccurs="0" maxOccurs="1" type="Layout" />
  1680. <xs:element name="to" minOccurs="0" maxOccurs="1" type="Layout" />
  1681. <xs:element name="bcc" minOccurs="0" maxOccurs="1" type="Layout" />
  1682. <xs:element name="body" minOccurs="0" maxOccurs="1" type="Layout" />
  1683. <xs:element name="subject" minOccurs="0" maxOccurs="1" type="Layout" />
  1684. <xs:element name="from" minOccurs="0" maxOccurs="1" type="Layout" />
  1685. <xs:element name="timeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1686. <xs:element name="priority" minOccurs="0" maxOccurs="1" type="Layout" />
  1687. <xs:element name="replaceNewlineWithBrTagInHtml" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1688. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1689. <xs:element name="smtpServer" minOccurs="0" maxOccurs="1" type="Layout" />
  1690. <xs:element name="smtpAuthentication" minOccurs="0" maxOccurs="1" type="NLog.Targets.SmtpAuthenticationMode" />
  1691. <xs:element name="smtpUserName" minOccurs="0" maxOccurs="1" type="Layout" />
  1692. <xs:element name="smtpPassword" minOccurs="0" maxOccurs="1" type="Layout" />
  1693. <xs:element name="enableSsl" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1694. <xs:element name="smtpPort" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1695. <xs:element name="useSystemNetMailSettings" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1696. <xs:element name="pickupDirectoryLocation" minOccurs="0" maxOccurs="1" type="xs:string" />
  1697. <xs:element name="deliveryMethod" minOccurs="0" maxOccurs="1" type="System.Net.Mail.SmtpDeliveryMethod" />
  1698. </xs:choice>
  1699. <xs:attribute name="name" type="xs:string">
  1700. <xs:annotation>
  1701. <xs:documentation>Name of the target.</xs:documentation>
  1702. </xs:annotation>
  1703. </xs:attribute>
  1704. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  1705. <xs:annotation>
  1706. <xs:documentation>Text to be rendered.</xs:documentation>
  1707. </xs:annotation>
  1708. </xs:attribute>
  1709. <xs:attribute name="header" type="SimpleLayoutAttribute">
  1710. <xs:annotation>
  1711. <xs:documentation>Header.</xs:documentation>
  1712. </xs:annotation>
  1713. </xs:attribute>
  1714. <xs:attribute name="footer" type="SimpleLayoutAttribute">
  1715. <xs:annotation>
  1716. <xs:documentation>Footer.</xs:documentation>
  1717. </xs:annotation>
  1718. </xs:attribute>
  1719. <xs:attribute name="html" type="xs:boolean">
  1720. <xs:annotation>
  1721. <xs:documentation>Indicates whether to send message as HTML instead of plain text.</xs:documentation>
  1722. </xs:annotation>
  1723. </xs:attribute>
  1724. <xs:attribute name="encoding" type="xs:string">
  1725. <xs:annotation>
  1726. <xs:documentation>Encoding to be used for sending e-mail.</xs:documentation>
  1727. </xs:annotation>
  1728. </xs:attribute>
  1729. <xs:attribute name="addNewLines" type="xs:boolean">
  1730. <xs:annotation>
  1731. <xs:documentation>Indicates whether to add new lines between log entries.</xs:documentation>
  1732. </xs:annotation>
  1733. </xs:attribute>
  1734. <xs:attribute name="cc" type="SimpleLayoutAttribute">
  1735. <xs:annotation>
  1736. <xs:documentation>CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
  1737. </xs:annotation>
  1738. </xs:attribute>
  1739. <xs:attribute name="to" type="SimpleLayoutAttribute">
  1740. <xs:annotation>
  1741. <xs:documentation>Recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
  1742. </xs:annotation>
  1743. </xs:attribute>
  1744. <xs:attribute name="bcc" type="SimpleLayoutAttribute">
  1745. <xs:annotation>
  1746. <xs:documentation>BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
  1747. </xs:annotation>
  1748. </xs:attribute>
  1749. <xs:attribute name="body" type="SimpleLayoutAttribute">
  1750. <xs:annotation>
  1751. <xs:documentation>Mail message body (repeated for each log message send in one mail).</xs:documentation>
  1752. </xs:annotation>
  1753. </xs:attribute>
  1754. <xs:attribute name="subject" type="SimpleLayoutAttribute">
  1755. <xs:annotation>
  1756. <xs:documentation>Mail subject.</xs:documentation>
  1757. </xs:annotation>
  1758. </xs:attribute>
  1759. <xs:attribute name="from" type="SimpleLayoutAttribute">
  1760. <xs:annotation>
  1761. <xs:documentation>Sender's email address (e.g. joe@domain.com).</xs:documentation>
  1762. </xs:annotation>
  1763. </xs:attribute>
  1764. <xs:attribute name="timeout" type="xs:integer">
  1765. <xs:annotation>
  1766. <xs:documentation>Indicates the SMTP client timeout.</xs:documentation>
  1767. </xs:annotation>
  1768. </xs:attribute>
  1769. <xs:attribute name="priority" type="SimpleLayoutAttribute">
  1770. <xs:annotation>
  1771. <xs:documentation>Priority used for sending mails.</xs:documentation>
  1772. </xs:annotation>
  1773. </xs:attribute>
  1774. <xs:attribute name="replaceNewlineWithBrTagInHtml" type="xs:boolean">
  1775. <xs:annotation>
  1776. <xs:documentation>Indicates whether NewLine characters in the body should be replaced with tags.</xs:documentation>
  1777. </xs:annotation>
  1778. </xs:attribute>
  1779. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1780. <xs:annotation>
  1781. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1782. </xs:annotation>
  1783. </xs:attribute>
  1784. <xs:attribute name="smtpServer" type="SimpleLayoutAttribute">
  1785. <xs:annotation>
  1786. <xs:documentation>SMTP Server to be used for sending.</xs:documentation>
  1787. </xs:annotation>
  1788. </xs:attribute>
  1789. <xs:attribute name="smtpAuthentication" type="NLog.Targets.SmtpAuthenticationMode">
  1790. <xs:annotation>
  1791. <xs:documentation>SMTP Authentication mode.</xs:documentation>
  1792. </xs:annotation>
  1793. </xs:attribute>
  1794. <xs:attribute name="smtpUserName" type="SimpleLayoutAttribute">
  1795. <xs:annotation>
  1796. <xs:documentation>Username used to connect to SMTP server (used when SmtpAuthentication is set to "basic").</xs:documentation>
  1797. </xs:annotation>
  1798. </xs:attribute>
  1799. <xs:attribute name="smtpPassword" type="SimpleLayoutAttribute">
  1800. <xs:annotation>
  1801. <xs:documentation>Password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic").</xs:documentation>
  1802. </xs:annotation>
  1803. </xs:attribute>
  1804. <xs:attribute name="enableSsl" type="xs:boolean">
  1805. <xs:annotation>
  1806. <xs:documentation>Indicates whether SSL (secure sockets layer) should be used when communicating with SMTP server.</xs:documentation>
  1807. </xs:annotation>
  1808. </xs:attribute>
  1809. <xs:attribute name="smtpPort" type="xs:integer">
  1810. <xs:annotation>
  1811. <xs:documentation>Port number that SMTP Server is listening on.</xs:documentation>
  1812. </xs:annotation>
  1813. </xs:attribute>
  1814. <xs:attribute name="useSystemNetMailSettings" type="xs:boolean">
  1815. <xs:annotation>
  1816. <xs:documentation>Indicates whether the default Settings from System.Net.MailSettings should be used.</xs:documentation>
  1817. </xs:annotation>
  1818. </xs:attribute>
  1819. <xs:attribute name="pickupDirectoryLocation" type="xs:string">
  1820. <xs:annotation>
  1821. <xs:documentation>Folder where applications save mail messages to be processed by the local SMTP server.</xs:documentation>
  1822. </xs:annotation>
  1823. </xs:attribute>
  1824. <xs:attribute name="deliveryMethod" type="System.Net.Mail.SmtpDeliveryMethod">
  1825. <xs:annotation>
  1826. <xs:documentation>Specifies how outgoing email messages will be handled.</xs:documentation>
  1827. </xs:annotation>
  1828. </xs:attribute>
  1829. </xs:extension>
  1830. </xs:complexContent>
  1831. </xs:complexType>
  1832. <xs:simpleType name="NLog.Targets.SmtpAuthenticationMode">
  1833. <xs:restriction base="xs:string">
  1834. <xs:enumeration value="None" />
  1835. <xs:enumeration value="Basic" />
  1836. <xs:enumeration value="Ntlm" />
  1837. </xs:restriction>
  1838. </xs:simpleType>
  1839. <xs:simpleType name="System.Net.Mail.SmtpDeliveryMethod">
  1840. <xs:restriction base="xs:string">
  1841. <xs:enumeration value="Network" />
  1842. <xs:enumeration value="SpecifiedPickupDirectory" />
  1843. <xs:enumeration value="PickupDirectoryFromIis" />
  1844. </xs:restriction>
  1845. </xs:simpleType>
  1846. <xs:complexType name="Memory">
  1847. <xs:complexContent>
  1848. <xs:extension base="Target">
  1849. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1850. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1851. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  1852. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1853. </xs:choice>
  1854. <xs:attribute name="name" type="xs:string">
  1855. <xs:annotation>
  1856. <xs:documentation>Name of the target.</xs:documentation>
  1857. </xs:annotation>
  1858. </xs:attribute>
  1859. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  1860. <xs:annotation>
  1861. <xs:documentation>Layout used to format log messages.</xs:documentation>
  1862. </xs:annotation>
  1863. </xs:attribute>
  1864. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1865. <xs:annotation>
  1866. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1867. </xs:annotation>
  1868. </xs:attribute>
  1869. </xs:extension>
  1870. </xs:complexContent>
  1871. </xs:complexType>
  1872. <xs:complexType name="MethodCall">
  1873. <xs:complexContent>
  1874. <xs:extension base="Target">
  1875. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1876. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1877. <xs:element name="className" minOccurs="0" maxOccurs="1" type="xs:string" />
  1878. <xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
  1879. <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
  1880. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1881. </xs:choice>
  1882. <xs:attribute name="name" type="xs:string">
  1883. <xs:annotation>
  1884. <xs:documentation>Name of the target.</xs:documentation>
  1885. </xs:annotation>
  1886. </xs:attribute>
  1887. <xs:attribute name="className" type="xs:string">
  1888. <xs:annotation>
  1889. <xs:documentation>Class name.</xs:documentation>
  1890. </xs:annotation>
  1891. </xs:attribute>
  1892. <xs:attribute name="methodName" type="xs:string">
  1893. <xs:annotation>
  1894. <xs:documentation>Method name. The method must be public and static. Use the AssemblyQualifiedName , https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx e.g.</xs:documentation>
  1895. </xs:annotation>
  1896. </xs:attribute>
  1897. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1898. <xs:annotation>
  1899. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1900. </xs:annotation>
  1901. </xs:attribute>
  1902. </xs:extension>
  1903. </xs:complexContent>
  1904. </xs:complexType>
  1905. <xs:complexType name="Network">
  1906. <xs:complexContent>
  1907. <xs:extension base="Target">
  1908. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1909. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  1910. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  1911. <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
  1912. <xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="LineEndingMode" />
  1913. <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1914. <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1915. <xs:element name="onConnectionOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetConnectionsOverflowAction" />
  1916. <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
  1917. <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
  1918. <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1919. <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1920. <xs:element name="maxConnections" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1921. <xs:element name="maxQueueSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  1922. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  1923. </xs:choice>
  1924. <xs:attribute name="name" type="xs:string">
  1925. <xs:annotation>
  1926. <xs:documentation>Name of the target.</xs:documentation>
  1927. </xs:annotation>
  1928. </xs:attribute>
  1929. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  1930. <xs:annotation>
  1931. <xs:documentation>Layout used to format log messages.</xs:documentation>
  1932. </xs:annotation>
  1933. </xs:attribute>
  1934. <xs:attribute name="encoding" type="xs:string">
  1935. <xs:annotation>
  1936. <xs:documentation>Encoding to be used.</xs:documentation>
  1937. </xs:annotation>
  1938. </xs:attribute>
  1939. <xs:attribute name="lineEnding" type="LineEndingMode">
  1940. <xs:annotation>
  1941. <xs:documentation>End of line value if a newline is appended at the end of log message .</xs:documentation>
  1942. </xs:annotation>
  1943. </xs:attribute>
  1944. <xs:attribute name="maxMessageSize" type="xs:integer">
  1945. <xs:annotation>
  1946. <xs:documentation>Maximum message size in bytes.</xs:documentation>
  1947. </xs:annotation>
  1948. </xs:attribute>
  1949. <xs:attribute name="newLine" type="xs:boolean">
  1950. <xs:annotation>
  1951. <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
  1952. </xs:annotation>
  1953. </xs:attribute>
  1954. <xs:attribute name="onConnectionOverflow" type="NLog.Targets.NetworkTargetConnectionsOverflowAction">
  1955. <xs:annotation>
  1956. <xs:documentation>Action that should be taken if the will be more connections than .</xs:documentation>
  1957. </xs:annotation>
  1958. </xs:attribute>
  1959. <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
  1960. <xs:annotation>
  1961. <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
  1962. </xs:annotation>
  1963. </xs:attribute>
  1964. <xs:attribute name="address" type="SimpleLayoutAttribute">
  1965. <xs:annotation>
  1966. <xs:documentation>Network address.</xs:documentation>
  1967. </xs:annotation>
  1968. </xs:attribute>
  1969. <xs:attribute name="connectionCacheSize" type="xs:integer">
  1970. <xs:annotation>
  1971. <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
  1972. </xs:annotation>
  1973. </xs:attribute>
  1974. <xs:attribute name="keepConnection" type="xs:boolean">
  1975. <xs:annotation>
  1976. <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
  1977. </xs:annotation>
  1978. </xs:attribute>
  1979. <xs:attribute name="maxConnections" type="xs:integer">
  1980. <xs:annotation>
  1981. <xs:documentation>Maximum current connections. 0 = no maximum.</xs:documentation>
  1982. </xs:annotation>
  1983. </xs:attribute>
  1984. <xs:attribute name="maxQueueSize" type="xs:integer">
  1985. <xs:annotation>
  1986. <xs:documentation>Maximum queue size.</xs:documentation>
  1987. </xs:annotation>
  1988. </xs:attribute>
  1989. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  1990. <xs:annotation>
  1991. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  1992. </xs:annotation>
  1993. </xs:attribute>
  1994. </xs:extension>
  1995. </xs:complexContent>
  1996. </xs:complexType>
  1997. <xs:complexType name="NLogViewer">
  1998. <xs:complexContent>
  1999. <xs:extension base="Target">
  2000. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2001. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2002. <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
  2003. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2004. <xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="LineEndingMode" />
  2005. <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  2006. <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2007. <xs:element name="onConnectionOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetConnectionsOverflowAction" />
  2008. <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
  2009. <xs:element name="maxConnections" minOccurs="0" maxOccurs="1" type="xs:integer" />
  2010. <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2011. <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  2012. <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
  2013. <xs:element name="maxQueueSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  2014. <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
  2015. <xs:element name="ndcItemSeparator" minOccurs="0" maxOccurs="1" type="xs:string" />
  2016. <xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2017. <xs:element name="includeMdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2018. <xs:element name="includeNdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2019. <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2020. <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2021. <xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2022. <xs:element name="includeAllProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2023. <xs:element name="appInfo" minOccurs="0" maxOccurs="1" type="xs:string" />
  2024. <xs:element name="includeNLogData" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2025. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2026. </xs:choice>
  2027. <xs:attribute name="name" type="xs:string">
  2028. <xs:annotation>
  2029. <xs:documentation>Name of the target.</xs:documentation>
  2030. </xs:annotation>
  2031. </xs:attribute>
  2032. <xs:attribute name="encoding" type="xs:string">
  2033. <xs:annotation>
  2034. <xs:documentation>Encoding to be used.</xs:documentation>
  2035. </xs:annotation>
  2036. </xs:attribute>
  2037. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2038. <xs:annotation>
  2039. <xs:documentation>Instance of that is used to format log messages.</xs:documentation>
  2040. </xs:annotation>
  2041. </xs:attribute>
  2042. <xs:attribute name="lineEnding" type="LineEndingMode">
  2043. <xs:annotation>
  2044. <xs:documentation>End of line value if a newline is appended at the end of log message .</xs:documentation>
  2045. </xs:annotation>
  2046. </xs:attribute>
  2047. <xs:attribute name="maxMessageSize" type="xs:integer">
  2048. <xs:annotation>
  2049. <xs:documentation>Maximum message size in bytes.</xs:documentation>
  2050. </xs:annotation>
  2051. </xs:attribute>
  2052. <xs:attribute name="newLine" type="xs:boolean">
  2053. <xs:annotation>
  2054. <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
  2055. </xs:annotation>
  2056. </xs:attribute>
  2057. <xs:attribute name="onConnectionOverflow" type="NLog.Targets.NetworkTargetConnectionsOverflowAction">
  2058. <xs:annotation>
  2059. <xs:documentation>Action that should be taken if the will be more connections than .</xs:documentation>
  2060. </xs:annotation>
  2061. </xs:attribute>
  2062. <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
  2063. <xs:annotation>
  2064. <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
  2065. </xs:annotation>
  2066. </xs:attribute>
  2067. <xs:attribute name="maxConnections" type="xs:integer">
  2068. <xs:annotation>
  2069. <xs:documentation>Maximum current connections. 0 = no maximum.</xs:documentation>
  2070. </xs:annotation>
  2071. </xs:attribute>
  2072. <xs:attribute name="keepConnection" type="xs:boolean">
  2073. <xs:annotation>
  2074. <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
  2075. </xs:annotation>
  2076. </xs:attribute>
  2077. <xs:attribute name="connectionCacheSize" type="xs:integer">
  2078. <xs:annotation>
  2079. <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
  2080. </xs:annotation>
  2081. </xs:attribute>
  2082. <xs:attribute name="address" type="SimpleLayoutAttribute">
  2083. <xs:annotation>
  2084. <xs:documentation>Network address.</xs:documentation>
  2085. </xs:annotation>
  2086. </xs:attribute>
  2087. <xs:attribute name="maxQueueSize" type="xs:integer">
  2088. <xs:annotation>
  2089. <xs:documentation>Maximum queue size.</xs:documentation>
  2090. </xs:annotation>
  2091. </xs:attribute>
  2092. <xs:attribute name="ndcItemSeparator" type="xs:string">
  2093. <xs:annotation>
  2094. <xs:documentation>NDC item separator.</xs:documentation>
  2095. </xs:annotation>
  2096. </xs:attribute>
  2097. <xs:attribute name="includeSourceInfo" type="xs:boolean">
  2098. <xs:annotation>
  2099. <xs:documentation>Indicates whether to include source info (file name and line number) in the information sent over the network.</xs:documentation>
  2100. </xs:annotation>
  2101. </xs:attribute>
  2102. <xs:attribute name="includeMdlc" type="xs:boolean">
  2103. <xs:annotation>
  2104. <xs:documentation>Indicates whether to include dictionary contents.</xs:documentation>
  2105. </xs:annotation>
  2106. </xs:attribute>
  2107. <xs:attribute name="includeNdlc" type="xs:boolean">
  2108. <xs:annotation>
  2109. <xs:documentation>Indicates whether to include contents of the stack.</xs:documentation>
  2110. </xs:annotation>
  2111. </xs:attribute>
  2112. <xs:attribute name="includeNdc" type="xs:boolean">
  2113. <xs:annotation>
  2114. <xs:documentation>Indicates whether to include stack contents.</xs:documentation>
  2115. </xs:annotation>
  2116. </xs:attribute>
  2117. <xs:attribute name="includeMdc" type="xs:boolean">
  2118. <xs:annotation>
  2119. <xs:documentation>Indicates whether to include dictionary contents.</xs:documentation>
  2120. </xs:annotation>
  2121. </xs:attribute>
  2122. <xs:attribute name="includeCallSite" type="xs:boolean">
  2123. <xs:annotation>
  2124. <xs:documentation>Indicates whether to include call site (class and method name) in the information sent over the network.</xs:documentation>
  2125. </xs:annotation>
  2126. </xs:attribute>
  2127. <xs:attribute name="includeAllProperties" type="xs:boolean">
  2128. <xs:annotation>
  2129. <xs:documentation>Option to include all properties from the log events</xs:documentation>
  2130. </xs:annotation>
  2131. </xs:attribute>
  2132. <xs:attribute name="appInfo" type="xs:string">
  2133. <xs:annotation>
  2134. <xs:documentation>AppInfo field. By default it's the friendly name of the current AppDomain.</xs:documentation>
  2135. </xs:annotation>
  2136. </xs:attribute>
  2137. <xs:attribute name="includeNLogData" type="xs:boolean">
  2138. <xs:annotation>
  2139. <xs:documentation>Indicates whether to include NLog-specific extensions to log4j schema.</xs:documentation>
  2140. </xs:annotation>
  2141. </xs:attribute>
  2142. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2143. <xs:annotation>
  2144. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2145. </xs:annotation>
  2146. </xs:attribute>
  2147. </xs:extension>
  2148. </xs:complexContent>
  2149. </xs:complexType>
  2150. <xs:complexType name="Null">
  2151. <xs:complexContent>
  2152. <xs:extension base="Target">
  2153. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2154. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2155. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2156. <xs:element name="formatMessage" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2157. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2158. </xs:choice>
  2159. <xs:attribute name="name" type="xs:string">
  2160. <xs:annotation>
  2161. <xs:documentation>Name of the target.</xs:documentation>
  2162. </xs:annotation>
  2163. </xs:attribute>
  2164. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2165. <xs:annotation>
  2166. <xs:documentation>Layout used to format log messages.</xs:documentation>
  2167. </xs:annotation>
  2168. </xs:attribute>
  2169. <xs:attribute name="formatMessage" type="xs:boolean">
  2170. <xs:annotation>
  2171. <xs:documentation>Indicates whether to perform layout calculation.</xs:documentation>
  2172. </xs:annotation>
  2173. </xs:attribute>
  2174. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2175. <xs:annotation>
  2176. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2177. </xs:annotation>
  2178. </xs:attribute>
  2179. </xs:extension>
  2180. </xs:complexContent>
  2181. </xs:complexType>
  2182. <xs:complexType name="OutputDebugString">
  2183. <xs:complexContent>
  2184. <xs:extension base="Target">
  2185. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2186. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2187. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2188. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2189. </xs:choice>
  2190. <xs:attribute name="name" type="xs:string">
  2191. <xs:annotation>
  2192. <xs:documentation>Name of the target.</xs:documentation>
  2193. </xs:annotation>
  2194. </xs:attribute>
  2195. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2196. <xs:annotation>
  2197. <xs:documentation>Layout used to format log messages.</xs:documentation>
  2198. </xs:annotation>
  2199. </xs:attribute>
  2200. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2201. <xs:annotation>
  2202. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2203. </xs:annotation>
  2204. </xs:attribute>
  2205. </xs:extension>
  2206. </xs:complexContent>
  2207. </xs:complexType>
  2208. <xs:complexType name="PerfCounter">
  2209. <xs:complexContent>
  2210. <xs:extension base="Target">
  2211. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2212. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2213. <xs:element name="autoCreate" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2214. <xs:element name="categoryName" minOccurs="0" maxOccurs="1" type="xs:string" />
  2215. <xs:element name="counterHelp" minOccurs="0" maxOccurs="1" type="xs:string" />
  2216. <xs:element name="counterName" minOccurs="0" maxOccurs="1" type="xs:string" />
  2217. <xs:element name="counterType" minOccurs="0" maxOccurs="1" type="System.Diagnostics.PerformanceCounterType" />
  2218. <xs:element name="incrementValue" minOccurs="0" maxOccurs="1" type="Layout" />
  2219. <xs:element name="instanceName" minOccurs="0" maxOccurs="1" type="xs:string" />
  2220. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2221. </xs:choice>
  2222. <xs:attribute name="name" type="xs:string">
  2223. <xs:annotation>
  2224. <xs:documentation>Name of the target.</xs:documentation>
  2225. </xs:annotation>
  2226. </xs:attribute>
  2227. <xs:attribute name="autoCreate" type="xs:boolean">
  2228. <xs:annotation>
  2229. <xs:documentation>Indicates whether performance counter should be automatically created.</xs:documentation>
  2230. </xs:annotation>
  2231. </xs:attribute>
  2232. <xs:attribute name="categoryName" type="xs:string">
  2233. <xs:annotation>
  2234. <xs:documentation>Name of the performance counter category.</xs:documentation>
  2235. </xs:annotation>
  2236. </xs:attribute>
  2237. <xs:attribute name="counterHelp" type="xs:string">
  2238. <xs:annotation>
  2239. <xs:documentation>Counter help text.</xs:documentation>
  2240. </xs:annotation>
  2241. </xs:attribute>
  2242. <xs:attribute name="counterName" type="xs:string">
  2243. <xs:annotation>
  2244. <xs:documentation>Name of the performance counter.</xs:documentation>
  2245. </xs:annotation>
  2246. </xs:attribute>
  2247. <xs:attribute name="counterType" type="System.Diagnostics.PerformanceCounterType">
  2248. <xs:annotation>
  2249. <xs:documentation>Performance counter type.</xs:documentation>
  2250. </xs:annotation>
  2251. </xs:attribute>
  2252. <xs:attribute name="incrementValue" type="SimpleLayoutAttribute">
  2253. <xs:annotation>
  2254. <xs:documentation>The value by which to increment the counter.</xs:documentation>
  2255. </xs:annotation>
  2256. </xs:attribute>
  2257. <xs:attribute name="instanceName" type="xs:string">
  2258. <xs:annotation>
  2259. <xs:documentation>Performance counter instance name.</xs:documentation>
  2260. </xs:annotation>
  2261. </xs:attribute>
  2262. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2263. <xs:annotation>
  2264. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2265. </xs:annotation>
  2266. </xs:attribute>
  2267. </xs:extension>
  2268. </xs:complexContent>
  2269. </xs:complexType>
  2270. <xs:simpleType name="System.Diagnostics.PerformanceCounterType">
  2271. <xs:restriction base="xs:string">
  2272. <xs:enumeration value="NumberOfItems32" />
  2273. <xs:enumeration value="NumberOfItems64" />
  2274. <xs:enumeration value="NumberOfItemsHEX32" />
  2275. <xs:enumeration value="NumberOfItemsHEX64" />
  2276. <xs:enumeration value="RateOfCountsPerSecond32" />
  2277. <xs:enumeration value="RateOfCountsPerSecond64" />
  2278. <xs:enumeration value="CountPerTimeInterval32" />
  2279. <xs:enumeration value="CountPerTimeInterval64" />
  2280. <xs:enumeration value="RawFraction" />
  2281. <xs:enumeration value="RawBase" />
  2282. <xs:enumeration value="AverageTimer32" />
  2283. <xs:enumeration value="AverageBase" />
  2284. <xs:enumeration value="AverageCount64" />
  2285. <xs:enumeration value="SampleFraction" />
  2286. <xs:enumeration value="SampleCounter" />
  2287. <xs:enumeration value="SampleBase" />
  2288. <xs:enumeration value="CounterTimer" />
  2289. <xs:enumeration value="CounterTimerInverse" />
  2290. <xs:enumeration value="Timer100Ns" />
  2291. <xs:enumeration value="Timer100NsInverse" />
  2292. <xs:enumeration value="ElapsedTime" />
  2293. <xs:enumeration value="CounterMultiTimer" />
  2294. <xs:enumeration value="CounterMultiTimerInverse" />
  2295. <xs:enumeration value="CounterMultiTimer100Ns" />
  2296. <xs:enumeration value="CounterMultiTimer100NsInverse" />
  2297. <xs:enumeration value="CounterMultiBase" />
  2298. <xs:enumeration value="CounterDelta32" />
  2299. <xs:enumeration value="CounterDelta64" />
  2300. </xs:restriction>
  2301. </xs:simpleType>
  2302. <xs:complexType name="PostFilteringWrapper">
  2303. <xs:complexContent>
  2304. <xs:extension base="WrapperTargetBase">
  2305. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2306. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2307. <xs:element name="defaultFilter" minOccurs="0" maxOccurs="1" type="Condition" />
  2308. <xs:element name="when" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.Wrappers.FilteringRule" />
  2309. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2310. </xs:choice>
  2311. <xs:attribute name="name" type="xs:string">
  2312. <xs:annotation>
  2313. <xs:documentation>Name of the target.</xs:documentation>
  2314. </xs:annotation>
  2315. </xs:attribute>
  2316. <xs:attribute name="defaultFilter" type="Condition">
  2317. <xs:annotation>
  2318. <xs:documentation>Default filter to be applied when no specific rule matches.</xs:documentation>
  2319. </xs:annotation>
  2320. </xs:attribute>
  2321. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2322. <xs:annotation>
  2323. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2324. </xs:annotation>
  2325. </xs:attribute>
  2326. </xs:extension>
  2327. </xs:complexContent>
  2328. </xs:complexType>
  2329. <xs:complexType name="NLog.Targets.Wrappers.FilteringRule">
  2330. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2331. <xs:element name="exists" minOccurs="0" maxOccurs="1" type="Condition" />
  2332. <xs:element name="filter" minOccurs="0" maxOccurs="1" type="Condition" />
  2333. </xs:choice>
  2334. <xs:attribute name="exists" type="Condition">
  2335. <xs:annotation>
  2336. <xs:documentation>Condition to be tested.</xs:documentation>
  2337. </xs:annotation>
  2338. </xs:attribute>
  2339. <xs:attribute name="filter" type="Condition">
  2340. <xs:annotation>
  2341. <xs:documentation>Resulting filter to be applied when the condition matches.</xs:documentation>
  2342. </xs:annotation>
  2343. </xs:attribute>
  2344. </xs:complexType>
  2345. <xs:complexType name="RandomizeGroup">
  2346. <xs:complexContent>
  2347. <xs:extension base="CompoundTargetBase">
  2348. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2349. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2350. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2351. </xs:choice>
  2352. <xs:attribute name="name" type="xs:string">
  2353. <xs:annotation>
  2354. <xs:documentation>Name of the target.</xs:documentation>
  2355. </xs:annotation>
  2356. </xs:attribute>
  2357. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2358. <xs:annotation>
  2359. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2360. </xs:annotation>
  2361. </xs:attribute>
  2362. </xs:extension>
  2363. </xs:complexContent>
  2364. </xs:complexType>
  2365. <xs:complexType name="RepeatingWrapper">
  2366. <xs:complexContent>
  2367. <xs:extension base="WrapperTargetBase">
  2368. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2369. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2370. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2371. <xs:element name="repeatCount" minOccurs="0" maxOccurs="1" type="xs:integer" />
  2372. </xs:choice>
  2373. <xs:attribute name="name" type="xs:string">
  2374. <xs:annotation>
  2375. <xs:documentation>Name of the target.</xs:documentation>
  2376. </xs:annotation>
  2377. </xs:attribute>
  2378. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2379. <xs:annotation>
  2380. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2381. </xs:annotation>
  2382. </xs:attribute>
  2383. <xs:attribute name="repeatCount" type="xs:integer">
  2384. <xs:annotation>
  2385. <xs:documentation>Number of times to repeat each log message.</xs:documentation>
  2386. </xs:annotation>
  2387. </xs:attribute>
  2388. </xs:extension>
  2389. </xs:complexContent>
  2390. </xs:complexType>
  2391. <xs:complexType name="RetryingWrapper">
  2392. <xs:complexContent>
  2393. <xs:extension base="WrapperTargetBase">
  2394. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2395. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2396. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2397. <xs:element name="retryCount" minOccurs="0" maxOccurs="1" type="xs:integer" />
  2398. <xs:element name="retryDelayMilliseconds" minOccurs="0" maxOccurs="1" type="xs:integer" />
  2399. </xs:choice>
  2400. <xs:attribute name="name" type="xs:string">
  2401. <xs:annotation>
  2402. <xs:documentation>Name of the target.</xs:documentation>
  2403. </xs:annotation>
  2404. </xs:attribute>
  2405. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2406. <xs:annotation>
  2407. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2408. </xs:annotation>
  2409. </xs:attribute>
  2410. <xs:attribute name="retryCount" type="xs:integer">
  2411. <xs:annotation>
  2412. <xs:documentation>Number of retries that should be attempted on the wrapped target in case of a failure.</xs:documentation>
  2413. </xs:annotation>
  2414. </xs:attribute>
  2415. <xs:attribute name="retryDelayMilliseconds" type="xs:integer">
  2416. <xs:annotation>
  2417. <xs:documentation>Time to wait between retries in milliseconds.</xs:documentation>
  2418. </xs:annotation>
  2419. </xs:attribute>
  2420. </xs:extension>
  2421. </xs:complexContent>
  2422. </xs:complexType>
  2423. <xs:complexType name="RoundRobinGroup">
  2424. <xs:complexContent>
  2425. <xs:extension base="CompoundTargetBase">
  2426. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2427. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2428. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2429. </xs:choice>
  2430. <xs:attribute name="name" type="xs:string">
  2431. <xs:annotation>
  2432. <xs:documentation>Name of the target.</xs:documentation>
  2433. </xs:annotation>
  2434. </xs:attribute>
  2435. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2436. <xs:annotation>
  2437. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2438. </xs:annotation>
  2439. </xs:attribute>
  2440. </xs:extension>
  2441. </xs:complexContent>
  2442. </xs:complexType>
  2443. <xs:complexType name="SplitGroup">
  2444. <xs:complexContent>
  2445. <xs:extension base="CompoundTargetBase">
  2446. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2447. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2448. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2449. </xs:choice>
  2450. <xs:attribute name="name" type="xs:string">
  2451. <xs:annotation>
  2452. <xs:documentation>Name of the target.</xs:documentation>
  2453. </xs:annotation>
  2454. </xs:attribute>
  2455. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2456. <xs:annotation>
  2457. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2458. </xs:annotation>
  2459. </xs:attribute>
  2460. </xs:extension>
  2461. </xs:complexContent>
  2462. </xs:complexType>
  2463. <xs:complexType name="Trace">
  2464. <xs:complexContent>
  2465. <xs:extension base="Target">
  2466. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2467. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2468. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2469. <xs:element name="rawWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2470. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2471. </xs:choice>
  2472. <xs:attribute name="name" type="xs:string">
  2473. <xs:annotation>
  2474. <xs:documentation>Name of the target.</xs:documentation>
  2475. </xs:annotation>
  2476. </xs:attribute>
  2477. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2478. <xs:annotation>
  2479. <xs:documentation>Layout used to format log messages.</xs:documentation>
  2480. </xs:annotation>
  2481. </xs:attribute>
  2482. <xs:attribute name="rawWrite" type="xs:boolean">
  2483. <xs:annotation>
  2484. <xs:documentation>Always use independent of </xs:documentation>
  2485. </xs:annotation>
  2486. </xs:attribute>
  2487. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2488. <xs:annotation>
  2489. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2490. </xs:annotation>
  2491. </xs:attribute>
  2492. </xs:extension>
  2493. </xs:complexContent>
  2494. </xs:complexType>
  2495. <xs:complexType name="WebService">
  2496. <xs:complexContent>
  2497. <xs:extension base="Target">
  2498. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2499. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2500. <xs:element name="includeBOM" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2501. <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
  2502. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2503. <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
  2504. <xs:element name="escapeDataNLogLegacy" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2505. <xs:element name="escapeDataRfc3986" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2506. <xs:element name="header" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
  2507. <xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
  2508. <xs:element name="namespace" minOccurs="0" maxOccurs="1" type="xs:string" />
  2509. <xs:element name="preAuthenticate" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2510. <xs:element name="protocol" minOccurs="0" maxOccurs="1" type="NLog.Targets.WebServiceProtocol" />
  2511. <xs:element name="url" minOccurs="0" maxOccurs="1" type="xs:anyURI" />
  2512. <xs:element name="xmlRoot" minOccurs="0" maxOccurs="1" type="xs:string" />
  2513. <xs:element name="xmlRootNamespace" minOccurs="0" maxOccurs="1" type="xs:string" />
  2514. </xs:choice>
  2515. <xs:attribute name="name" type="xs:string">
  2516. <xs:annotation>
  2517. <xs:documentation>Name of the target.</xs:documentation>
  2518. </xs:annotation>
  2519. </xs:attribute>
  2520. <xs:attribute name="includeBOM" type="xs:boolean">
  2521. <xs:annotation>
  2522. <xs:documentation>Should we include the BOM (Byte-order-mark) for UTF? Influences the property. This will only work for UTF-8.</xs:documentation>
  2523. </xs:annotation>
  2524. </xs:attribute>
  2525. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  2526. <xs:annotation>
  2527. <xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
  2528. </xs:annotation>
  2529. </xs:attribute>
  2530. <xs:attribute name="encoding" type="xs:string">
  2531. <xs:annotation>
  2532. <xs:documentation>Encoding.</xs:documentation>
  2533. </xs:annotation>
  2534. </xs:attribute>
  2535. <xs:attribute name="escapeDataNLogLegacy" type="xs:boolean">
  2536. <xs:annotation>
  2537. <xs:documentation>Value whether escaping be done according to the old NLog style (Very non-standard)</xs:documentation>
  2538. </xs:annotation>
  2539. </xs:attribute>
  2540. <xs:attribute name="escapeDataRfc3986" type="xs:boolean">
  2541. <xs:annotation>
  2542. <xs:documentation>Value whether escaping be done according to Rfc3986 (Supports Internationalized Resource Identifiers - IRIs)</xs:documentation>
  2543. </xs:annotation>
  2544. </xs:attribute>
  2545. <xs:attribute name="methodName" type="xs:string">
  2546. <xs:annotation>
  2547. <xs:documentation>Web service method name. Only used with Soap.</xs:documentation>
  2548. </xs:annotation>
  2549. </xs:attribute>
  2550. <xs:attribute name="namespace" type="xs:string">
  2551. <xs:annotation>
  2552. <xs:documentation>Web service namespace. Only used with Soap.</xs:documentation>
  2553. </xs:annotation>
  2554. </xs:attribute>
  2555. <xs:attribute name="preAuthenticate" type="xs:boolean">
  2556. <xs:annotation>
  2557. <xs:documentation>Indicates whether to pre-authenticate the HttpWebRequest (Requires 'Authorization' in parameters)</xs:documentation>
  2558. </xs:annotation>
  2559. </xs:attribute>
  2560. <xs:attribute name="protocol" type="NLog.Targets.WebServiceProtocol">
  2561. <xs:annotation>
  2562. <xs:documentation>Protocol to be used when calling web service.</xs:documentation>
  2563. </xs:annotation>
  2564. </xs:attribute>
  2565. <xs:attribute name="url" type="xs:anyURI">
  2566. <xs:annotation>
  2567. <xs:documentation>Web service URL.</xs:documentation>
  2568. </xs:annotation>
  2569. </xs:attribute>
  2570. <xs:attribute name="xmlRoot" type="xs:string">
  2571. <xs:annotation>
  2572. <xs:documentation>Name of the root XML element, if POST of XML document chosen. If so, this property must not be null. (see and ).</xs:documentation>
  2573. </xs:annotation>
  2574. </xs:attribute>
  2575. <xs:attribute name="xmlRootNamespace" type="xs:string">
  2576. <xs:annotation>
  2577. <xs:documentation>(optional) root namespace of the XML document, if POST of XML document chosen. (see and ).</xs:documentation>
  2578. </xs:annotation>
  2579. </xs:attribute>
  2580. </xs:extension>
  2581. </xs:complexContent>
  2582. </xs:complexType>
  2583. <xs:simpleType name="NLog.Targets.WebServiceProtocol">
  2584. <xs:restriction base="xs:string">
  2585. <xs:enumeration value="Soap11" />
  2586. <xs:enumeration value="Soap12" />
  2587. <xs:enumeration value="HttpPost" />
  2588. <xs:enumeration value="HttpGet" />
  2589. <xs:enumeration value="JsonPost" />
  2590. <xs:enumeration value="XmlPost" />
  2591. </xs:restriction>
  2592. </xs:simpleType>
  2593. <xs:complexType name="CompoundLayout">
  2594. <xs:complexContent>
  2595. <xs:extension base="Layout">
  2596. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2597. <xs:element name="layout" minOccurs="0" maxOccurs="unbounded" type="Layout" />
  2598. </xs:choice>
  2599. </xs:extension>
  2600. </xs:complexContent>
  2601. </xs:complexType>
  2602. <xs:complexType name="Layout">
  2603. <xs:choice minOccurs="0" maxOccurs="unbounded" />
  2604. </xs:complexType>
  2605. <xs:complexType name="CsvLayout">
  2606. <xs:complexContent>
  2607. <xs:extension base="Layout">
  2608. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2609. <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
  2610. <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
  2611. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2612. <xs:element name="column" minOccurs="0" maxOccurs="unbounded" type="NLog.Layouts.CsvColumn" />
  2613. <xs:element name="customColumnDelimiter" minOccurs="0" maxOccurs="1" type="xs:string" />
  2614. <xs:element name="delimiter" minOccurs="0" maxOccurs="1" type="NLog.Layouts.CsvColumnDelimiterMode" />
  2615. <xs:element name="quoteChar" minOccurs="0" maxOccurs="1" type="xs:string" />
  2616. <xs:element name="quoting" minOccurs="0" maxOccurs="1" type="NLog.Layouts.CsvQuotingMode" />
  2617. <xs:element name="withHeader" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2618. </xs:choice>
  2619. <xs:attribute name="footer" type="SimpleLayoutAttribute">
  2620. <xs:annotation>
  2621. <xs:documentation>Footer layout.</xs:documentation>
  2622. </xs:annotation>
  2623. </xs:attribute>
  2624. <xs:attribute name="header" type="SimpleLayoutAttribute">
  2625. <xs:annotation>
  2626. <xs:documentation>Header layout.</xs:documentation>
  2627. </xs:annotation>
  2628. </xs:attribute>
  2629. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2630. <xs:annotation>
  2631. <xs:documentation>Body layout (can be repeated multiple times).</xs:documentation>
  2632. </xs:annotation>
  2633. </xs:attribute>
  2634. <xs:attribute name="customColumnDelimiter" type="xs:string">
  2635. <xs:annotation>
  2636. <xs:documentation>Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom').</xs:documentation>
  2637. </xs:annotation>
  2638. </xs:attribute>
  2639. <xs:attribute name="delimiter" type="NLog.Layouts.CsvColumnDelimiterMode">
  2640. <xs:annotation>
  2641. <xs:documentation>Column delimiter.</xs:documentation>
  2642. </xs:annotation>
  2643. </xs:attribute>
  2644. <xs:attribute name="quoteChar" type="xs:string">
  2645. <xs:annotation>
  2646. <xs:documentation>Quote Character.</xs:documentation>
  2647. </xs:annotation>
  2648. </xs:attribute>
  2649. <xs:attribute name="quoting" type="NLog.Layouts.CsvQuotingMode">
  2650. <xs:annotation>
  2651. <xs:documentation>Quoting mode.</xs:documentation>
  2652. </xs:annotation>
  2653. </xs:attribute>
  2654. <xs:attribute name="withHeader" type="xs:boolean">
  2655. <xs:annotation>
  2656. <xs:documentation>Indicates whether CVS should include header.</xs:documentation>
  2657. </xs:annotation>
  2658. </xs:attribute>
  2659. </xs:extension>
  2660. </xs:complexContent>
  2661. </xs:complexType>
  2662. <xs:simpleType name="NLog.Layouts.CsvColumnDelimiterMode">
  2663. <xs:restriction base="xs:string">
  2664. <xs:enumeration value="Auto" />
  2665. <xs:enumeration value="Comma" />
  2666. <xs:enumeration value="Semicolon" />
  2667. <xs:enumeration value="Tab" />
  2668. <xs:enumeration value="Pipe" />
  2669. <xs:enumeration value="Space" />
  2670. <xs:enumeration value="Custom" />
  2671. </xs:restriction>
  2672. </xs:simpleType>
  2673. <xs:simpleType name="NLog.Layouts.CsvQuotingMode">
  2674. <xs:restriction base="xs:string">
  2675. <xs:enumeration value="All" />
  2676. <xs:enumeration value="Nothing" />
  2677. <xs:enumeration value="Auto" />
  2678. </xs:restriction>
  2679. </xs:simpleType>
  2680. <xs:complexType name="NLog.Layouts.CsvColumn">
  2681. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2682. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2683. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2684. </xs:choice>
  2685. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2686. <xs:annotation>
  2687. <xs:documentation>Layout of the column.</xs:documentation>
  2688. </xs:annotation>
  2689. </xs:attribute>
  2690. <xs:attribute name="name" type="xs:string">
  2691. <xs:annotation>
  2692. <xs:documentation>Name of the column.</xs:documentation>
  2693. </xs:annotation>
  2694. </xs:attribute>
  2695. </xs:complexType>
  2696. <xs:complexType name="JsonLayout">
  2697. <xs:complexContent>
  2698. <xs:extension base="Layout">
  2699. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2700. <xs:element name="attribute" minOccurs="0" maxOccurs="unbounded" type="NLog.Layouts.JsonAttribute" />
  2701. <xs:element name="excludeProperties" minOccurs="0" maxOccurs="1" type="xs:string" />
  2702. <xs:element name="includeAllProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2703. <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2704. <xs:element name="includeMdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2705. <xs:element name="renderEmptyObject" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2706. <xs:element name="suppressSpaces" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2707. </xs:choice>
  2708. <xs:attribute name="excludeProperties" type="xs:string">
  2709. <xs:annotation>
  2710. <xs:documentation>List of property names to exclude when is true</xs:documentation>
  2711. </xs:annotation>
  2712. </xs:attribute>
  2713. <xs:attribute name="includeAllProperties" type="xs:boolean">
  2714. <xs:annotation>
  2715. <xs:documentation>Option to include all properties from the log events</xs:documentation>
  2716. </xs:annotation>
  2717. </xs:attribute>
  2718. <xs:attribute name="includeMdc" type="xs:boolean">
  2719. <xs:annotation>
  2720. <xs:documentation>Indicates whether to include contents of the dictionary.</xs:documentation>
  2721. </xs:annotation>
  2722. </xs:attribute>
  2723. <xs:attribute name="includeMdlc" type="xs:boolean">
  2724. <xs:annotation>
  2725. <xs:documentation>Indicates whether to include contents of the dictionary.</xs:documentation>
  2726. </xs:annotation>
  2727. </xs:attribute>
  2728. <xs:attribute name="renderEmptyObject" type="xs:boolean">
  2729. <xs:annotation>
  2730. <xs:documentation>Option to render the empty object value {}</xs:documentation>
  2731. </xs:annotation>
  2732. </xs:attribute>
  2733. <xs:attribute name="suppressSpaces" type="xs:boolean">
  2734. <xs:annotation>
  2735. <xs:documentation>Option to suppress the extra spaces in the output json</xs:documentation>
  2736. </xs:annotation>
  2737. </xs:attribute>
  2738. </xs:extension>
  2739. </xs:complexContent>
  2740. </xs:complexType>
  2741. <xs:complexType name="NLog.Layouts.JsonAttribute">
  2742. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2743. <xs:element name="encode" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2744. <xs:element name="escapeUnicode" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2745. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2746. <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
  2747. </xs:choice>
  2748. <xs:attribute name="encode" type="xs:boolean">
  2749. <xs:annotation>
  2750. <xs:documentation>Determines wether or not this attribute will be Json encoded.</xs:documentation>
  2751. </xs:annotation>
  2752. </xs:attribute>
  2753. <xs:attribute name="escapeUnicode" type="xs:boolean">
  2754. <xs:annotation>
  2755. <xs:documentation>Indicates whether to escape non-ascii characters</xs:documentation>
  2756. </xs:annotation>
  2757. </xs:attribute>
  2758. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2759. <xs:annotation>
  2760. <xs:documentation>Layout that will be rendered as the attribute's value.</xs:documentation>
  2761. </xs:annotation>
  2762. </xs:attribute>
  2763. <xs:attribute name="name" type="xs:string">
  2764. <xs:annotation>
  2765. <xs:documentation>Name of the attribute.</xs:documentation>
  2766. </xs:annotation>
  2767. </xs:attribute>
  2768. </xs:complexType>
  2769. <xs:complexType name="LayoutWithHeaderAndFooter">
  2770. <xs:complexContent>
  2771. <xs:extension base="Layout">
  2772. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2773. <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
  2774. <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
  2775. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2776. </xs:choice>
  2777. <xs:attribute name="footer" type="SimpleLayoutAttribute">
  2778. <xs:annotation>
  2779. <xs:documentation>Footer layout.</xs:documentation>
  2780. </xs:annotation>
  2781. </xs:attribute>
  2782. <xs:attribute name="header" type="SimpleLayoutAttribute">
  2783. <xs:annotation>
  2784. <xs:documentation>Header layout.</xs:documentation>
  2785. </xs:annotation>
  2786. </xs:attribute>
  2787. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2788. <xs:annotation>
  2789. <xs:documentation>Body layout (can be repeated multiple times).</xs:documentation>
  2790. </xs:annotation>
  2791. </xs:attribute>
  2792. </xs:extension>
  2793. </xs:complexContent>
  2794. </xs:complexType>
  2795. <xs:complexType name="Log4JXmlEventLayout">
  2796. <xs:complexContent>
  2797. <xs:extension base="Layout">
  2798. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2799. <xs:element name="includeAllProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2800. <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2801. <xs:element name="includeMdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2802. <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2803. <xs:element name="includeNdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2804. </xs:choice>
  2805. <xs:attribute name="includeAllProperties" type="xs:boolean">
  2806. <xs:annotation>
  2807. <xs:documentation>Option to include all properties from the log events</xs:documentation>
  2808. </xs:annotation>
  2809. </xs:attribute>
  2810. <xs:attribute name="includeMdc" type="xs:boolean">
  2811. <xs:annotation>
  2812. <xs:documentation>Indicates whether to include contents of the dictionary.</xs:documentation>
  2813. </xs:annotation>
  2814. </xs:attribute>
  2815. <xs:attribute name="includeMdlc" type="xs:boolean">
  2816. <xs:annotation>
  2817. <xs:documentation>Indicates whether to include contents of the dictionary.</xs:documentation>
  2818. </xs:annotation>
  2819. </xs:attribute>
  2820. <xs:attribute name="includeNdc" type="xs:boolean">
  2821. <xs:annotation>
  2822. <xs:documentation>Indicates whether to include contents of the stack.</xs:documentation>
  2823. </xs:annotation>
  2824. </xs:attribute>
  2825. <xs:attribute name="includeNdlc" type="xs:boolean">
  2826. <xs:annotation>
  2827. <xs:documentation>Indicates whether to include contents of the stack.</xs:documentation>
  2828. </xs:annotation>
  2829. </xs:attribute>
  2830. </xs:extension>
  2831. </xs:complexContent>
  2832. </xs:complexType>
  2833. <xs:complexType name="SimpleLayout">
  2834. <xs:complexContent>
  2835. <xs:extension base="Layout">
  2836. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2837. <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
  2838. </xs:choice>
  2839. <xs:attribute name="text" type="xs:string">
  2840. <xs:annotation>
  2841. <xs:documentation>Layout text.</xs:documentation>
  2842. </xs:annotation>
  2843. </xs:attribute>
  2844. </xs:extension>
  2845. </xs:complexContent>
  2846. </xs:complexType>
  2847. <xs:complexType name="when">
  2848. <xs:complexContent>
  2849. <xs:extension base="Filter">
  2850. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2851. <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
  2852. <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
  2853. </xs:choice>
  2854. <xs:attribute name="action" type="FilterResult">
  2855. <xs:annotation>
  2856. <xs:documentation>Action to be taken when filter matches.</xs:documentation>
  2857. </xs:annotation>
  2858. </xs:attribute>
  2859. <xs:attribute name="condition" type="Condition">
  2860. <xs:annotation>
  2861. <xs:documentation>Condition expression.</xs:documentation>
  2862. </xs:annotation>
  2863. </xs:attribute>
  2864. </xs:extension>
  2865. </xs:complexContent>
  2866. </xs:complexType>
  2867. <xs:simpleType name="FilterResult">
  2868. <xs:restriction base="xs:string">
  2869. <xs:enumeration value="Neutral" />
  2870. <xs:enumeration value="Log" />
  2871. <xs:enumeration value="Ignore" />
  2872. <xs:enumeration value="LogFinal" />
  2873. <xs:enumeration value="IgnoreFinal" />
  2874. </xs:restriction>
  2875. </xs:simpleType>
  2876. <xs:complexType name="whenContains">
  2877. <xs:complexContent>
  2878. <xs:extension base="Filter">
  2879. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2880. <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
  2881. <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2882. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2883. <xs:element name="substring" minOccurs="0" maxOccurs="1" type="xs:string" />
  2884. </xs:choice>
  2885. <xs:attribute name="action" type="FilterResult">
  2886. <xs:annotation>
  2887. <xs:documentation>Action to be taken when filter matches.</xs:documentation>
  2888. </xs:annotation>
  2889. </xs:attribute>
  2890. <xs:attribute name="ignoreCase" type="xs:boolean">
  2891. <xs:annotation>
  2892. <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
  2893. </xs:annotation>
  2894. </xs:attribute>
  2895. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2896. <xs:annotation>
  2897. <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
  2898. </xs:annotation>
  2899. </xs:attribute>
  2900. <xs:attribute name="substring" type="xs:string">
  2901. <xs:annotation>
  2902. <xs:documentation>Substring to be matched.</xs:documentation>
  2903. </xs:annotation>
  2904. </xs:attribute>
  2905. </xs:extension>
  2906. </xs:complexContent>
  2907. </xs:complexType>
  2908. <xs:complexType name="whenEqual">
  2909. <xs:complexContent>
  2910. <xs:extension base="Filter">
  2911. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2912. <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
  2913. <xs:element name="compareTo" minOccurs="0" maxOccurs="1" type="xs:string" />
  2914. <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2915. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2916. </xs:choice>
  2917. <xs:attribute name="action" type="FilterResult">
  2918. <xs:annotation>
  2919. <xs:documentation>Action to be taken when filter matches.</xs:documentation>
  2920. </xs:annotation>
  2921. </xs:attribute>
  2922. <xs:attribute name="compareTo" type="xs:string">
  2923. <xs:annotation>
  2924. <xs:documentation>String to compare the layout to.</xs:documentation>
  2925. </xs:annotation>
  2926. </xs:attribute>
  2927. <xs:attribute name="ignoreCase" type="xs:boolean">
  2928. <xs:annotation>
  2929. <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
  2930. </xs:annotation>
  2931. </xs:attribute>
  2932. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2933. <xs:annotation>
  2934. <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
  2935. </xs:annotation>
  2936. </xs:attribute>
  2937. </xs:extension>
  2938. </xs:complexContent>
  2939. </xs:complexType>
  2940. <xs:complexType name="whenNotContains">
  2941. <xs:complexContent>
  2942. <xs:extension base="Filter">
  2943. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2944. <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
  2945. <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2946. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2947. <xs:element name="substring" minOccurs="0" maxOccurs="1" type="xs:string" />
  2948. </xs:choice>
  2949. <xs:attribute name="action" type="FilterResult">
  2950. <xs:annotation>
  2951. <xs:documentation>Action to be taken when filter matches.</xs:documentation>
  2952. </xs:annotation>
  2953. </xs:attribute>
  2954. <xs:attribute name="ignoreCase" type="xs:boolean">
  2955. <xs:annotation>
  2956. <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
  2957. </xs:annotation>
  2958. </xs:attribute>
  2959. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2960. <xs:annotation>
  2961. <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
  2962. </xs:annotation>
  2963. </xs:attribute>
  2964. <xs:attribute name="substring" type="xs:string">
  2965. <xs:annotation>
  2966. <xs:documentation>Substring to be matched.</xs:documentation>
  2967. </xs:annotation>
  2968. </xs:attribute>
  2969. </xs:extension>
  2970. </xs:complexContent>
  2971. </xs:complexType>
  2972. <xs:complexType name="whenNotEqual">
  2973. <xs:complexContent>
  2974. <xs:extension base="Filter">
  2975. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2976. <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
  2977. <xs:element name="compareTo" minOccurs="0" maxOccurs="1" type="xs:string" />
  2978. <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  2979. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  2980. </xs:choice>
  2981. <xs:attribute name="action" type="FilterResult">
  2982. <xs:annotation>
  2983. <xs:documentation>Action to be taken when filter matches.</xs:documentation>
  2984. </xs:annotation>
  2985. </xs:attribute>
  2986. <xs:attribute name="compareTo" type="xs:string">
  2987. <xs:annotation>
  2988. <xs:documentation>String to compare the layout to.</xs:documentation>
  2989. </xs:annotation>
  2990. </xs:attribute>
  2991. <xs:attribute name="ignoreCase" type="xs:boolean">
  2992. <xs:annotation>
  2993. <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
  2994. </xs:annotation>
  2995. </xs:attribute>
  2996. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  2997. <xs:annotation>
  2998. <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
  2999. </xs:annotation>
  3000. </xs:attribute>
  3001. </xs:extension>
  3002. </xs:complexContent>
  3003. </xs:complexType>
  3004. <xs:complexType name="whenRepeated">
  3005. <xs:complexContent>
  3006. <xs:extension base="Filter">
  3007. <xs:choice minOccurs="0" maxOccurs="unbounded">
  3008. <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
  3009. <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
  3010. <xs:element name="defaultFilterCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  3011. <xs:element name="filterCountMessageAppendFormat" minOccurs="0" maxOccurs="1" type="xs:string" />
  3012. <xs:element name="filterCountPropertyName" minOccurs="0" maxOccurs="1" type="xs:string" />
  3013. <xs:element name="includeFirst" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  3014. <xs:element name="maxFilterCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
  3015. <xs:element name="maxLength" minOccurs="0" maxOccurs="1" type="xs:integer" />
  3016. <xs:element name="optimizeBufferDefaultLength" minOccurs="0" maxOccurs="1" type="xs:integer" />
  3017. <xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
  3018. <xs:element name="timeoutSeconds" minOccurs="0" maxOccurs="1" type="xs:integer" />
  3019. </xs:choice>
  3020. <xs:attribute name="action" type="FilterResult">
  3021. <xs:annotation>
  3022. <xs:documentation>Action to be taken when filter matches.</xs:documentation>
  3023. </xs:annotation>
  3024. </xs:attribute>
  3025. <xs:attribute name="layout" type="SimpleLayoutAttribute">
  3026. <xs:annotation>
  3027. <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
  3028. </xs:annotation>
  3029. </xs:attribute>
  3030. <xs:attribute name="defaultFilterCacheSize" type="xs:integer">
  3031. <xs:annotation>
  3032. <xs:documentation>Default number of unique filter values to expect, will automatically increase if needed</xs:documentation>
  3033. </xs:annotation>
  3034. </xs:attribute>
  3035. <xs:attribute name="filterCountMessageAppendFormat" type="xs:string">
  3036. <xs:annotation>
  3037. <xs:documentation>Append FilterCount to the when an event is no longer filtered</xs:documentation>
  3038. </xs:annotation>
  3039. </xs:attribute>
  3040. <xs:attribute name="filterCountPropertyName" type="xs:string">
  3041. <xs:annotation>
  3042. <xs:documentation>Insert FilterCount value into when an event is no longer filtered</xs:documentation>
  3043. </xs:annotation>
  3044. </xs:attribute>
  3045. <xs:attribute name="includeFirst" type="xs:boolean">
  3046. <xs:annotation>
  3047. <xs:documentation>Applies the configured action to the initial logevent that starts the timeout period. Used to configure that it should ignore all events until timeout.</xs:documentation>
  3048. </xs:annotation>
  3049. </xs:attribute>
  3050. <xs:attribute name="maxFilterCacheSize" type="xs:integer">
  3051. <xs:annotation>
  3052. <xs:documentation>Max number of unique filter values to expect simultaneously</xs:documentation>
  3053. </xs:annotation>
  3054. </xs:attribute>
  3055. <xs:attribute name="maxLength" type="xs:integer">
  3056. <xs:annotation>
  3057. <xs:documentation>Max length of filter values, will truncate if above limit</xs:documentation>
  3058. </xs:annotation>
  3059. </xs:attribute>
  3060. <xs:attribute name="optimizeBufferDefaultLength" type="xs:integer">
  3061. <xs:annotation>
  3062. <xs:documentation>Default buffer size for the internal buffers</xs:documentation>
  3063. </xs:annotation>
  3064. </xs:attribute>
  3065. <xs:attribute name="optimizeBufferReuse" type="xs:boolean">
  3066. <xs:annotation>
  3067. <xs:documentation>Reuse internal buffers, and doesn't have to constantly allocate new buffers</xs:documentation>
  3068. </xs:annotation>
  3069. </xs:attribute>
  3070. <xs:attribute name="timeoutSeconds" type="xs:integer">
  3071. <xs:annotation>
  3072. <xs:documentation>How long before a filter expires, and logging is accepted again</xs:documentation>
  3073. </xs:annotation>
  3074. </xs:attribute>
  3075. </xs:extension>
  3076. </xs:complexContent>
  3077. </xs:complexType>
  3078. <xs:complexType name="AccurateLocal">
  3079. <xs:complexContent>
  3080. <xs:extension base="TimeSource">
  3081. <xs:choice minOccurs="0" maxOccurs="unbounded" />
  3082. </xs:extension>
  3083. </xs:complexContent>
  3084. </xs:complexType>
  3085. <xs:complexType name="AccurateUTC">
  3086. <xs:complexContent>
  3087. <xs:extension base="TimeSource">
  3088. <xs:choice minOccurs="0" maxOccurs="unbounded" />
  3089. </xs:extension>
  3090. </xs:complexContent>
  3091. </xs:complexType>
  3092. <xs:complexType name="FastLocal">
  3093. <xs:complexContent>
  3094. <xs:extension base="TimeSource">
  3095. <xs:choice minOccurs="0" maxOccurs="unbounded" />
  3096. </xs:extension>
  3097. </xs:complexContent>
  3098. </xs:complexType>
  3099. <xs:complexType name="FastUTC">
  3100. <xs:complexContent>
  3101. <xs:extension base="TimeSource">
  3102. <xs:choice minOccurs="0" maxOccurs="unbounded" />
  3103. </xs:extension>
  3104. </xs:complexContent>
  3105. </xs:complexType>
  3106. </xs:schema>