NLog.xsd 193 KB

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