NLog.xsd 154 KB

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