NLog.xsd 155 KB

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