NLog.xsd 189 KB

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