NLog.xsd 125 KB

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