NLog.xsd 182 KB

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