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=
"http://www.nlog-project.org/schemas/NLog.xsd" xmlns:
mstns=
"http://www.nlog-project.org/schemas/NLog.xsd" xmlns:
xs=
"http://www.w3.org/2001/XMLSchema">
3 <xs:element name=
"nlog" type=
"NLogConfiguration" />
4 <xs:element name=
"target" type=
"Target" abstract=
"true" />
5 <xs:complexType name=
"NLogConfiguration">
6 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
7 <xs:element name=
"extensions" type=
"NLogExtensions" />
8 <xs:element name=
"include" type=
"NLogInclude" />
9 <xs:element name=
"variable" type=
"NLogVariable" />
10 <xs:element name=
"targets" type=
"NLogTargets" />
11 <xs:element name=
"rules" type=
"NLogRules" />
13 <xs:attribute name=
"autoReload" type=
"xs:boolean">
15 <xs:documentation>Watch config file for changes and reload automatically.
</xs:documentation>
18 <xs:attribute name=
"internalLogToConsole" type=
"xs:boolean">
20 <xs:documentation>Print internal NLog messages to the console. Default value is: false
</xs:documentation>
23 <xs:attribute name=
"internalLogToConsoleError" type=
"xs:boolean">
25 <xs:documentation>Print internal NLog messages to the console error output. Default value is: false
</xs:documentation>
28 <xs:attribute name=
"internalLogFile" type=
"xs:string">
30 <xs:documentation>Write internal NLog messages to the specified file.
</xs:documentation>
33 <xs:attribute name=
"internalLogLevel" type=
"NLogLevel">
35 <xs:documentation>Log level threshold for internal log messages. Default value is: Info.
</xs:documentation>
38 <xs:attribute name=
"globalThreshold" type=
"NLogLevel">
40 <xs:documentation>Global log level threshold for application log messages. Messages below this level won't be logged..
</xs:documentation>
43 <xs:attribute name=
"throwExceptions" type=
"xs:boolean">
45 <xs:documentation>Pass NLog internal exceptions to the application. Default value is: false.
</xs:documentation>
49 <xs:complexType name=
"NLogTargets">
50 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
51 <xs:element name=
"default-wrapper" type=
"WrapperTargetBase" />
52 <xs:element name=
"default-target-parameters" type=
"Target" />
53 <xs:element name=
"target" type=
"Target" />
54 <xs:element name=
"wrapper-target" type=
"WrapperTargetBase" />
55 <xs:element name=
"compound-target" type=
"CompoundTargetBase" />
57 <xs:attribute name=
"async" type=
"xs:boolean">
59 <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>
63 <xs:complexType name=
"NLogRules">
64 <xs:sequence minOccurs=
"0" maxOccurs=
"unbounded">
65 <xs:element name=
"logger" type=
"NLogLoggerRule" />
68 <xs:complexType name=
"NLogExtensions">
69 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
70 <xs:element name=
"add" type=
"NLogExtensionsAdd" />
73 <xs:complexType name=
"NLogExtensionsAdd">
74 <xs:attribute name=
"prefix" type=
"xs:string">
76 <xs:documentation>Prefix for targets/layout renderers/filters/conditions loaded from this assembly.
</xs:documentation>
79 <xs:attribute name=
"assemblyFile" type=
"xs:string">
81 <xs:documentation>Load NLog extensions from the specified file (*.dll)
</xs:documentation>
84 <xs:attribute name=
"assembly" type=
"xs:string">
86 <xs:documentation>Load NLog extensions from the specified assembly. Assembly name should be fully qualified.
</xs:documentation>
90 <xs:complexType name=
"NLogLoggerRule">
91 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
92 <xs:element name=
"filters" type=
"NLogFilters" />
94 <xs:attribute name=
"name" use=
"optional">
96 <xs:documentation>Name of the logger. May include '*' character which acts like a wildcard. Allowed forms are: *, Name, *Name, Name* and *Name*
</xs:documentation>
99 <xs:attribute name=
"levels" type=
"NLogLevelList">
101 <xs:documentation>Comma separated list of levels that this rule matches.
</xs:documentation>
104 <xs:attribute name=
"minlevel" type=
"NLogLevel">
106 <xs:documentation>Minimum level that this rule matches.
</xs:documentation>
109 <xs:attribute name=
"maxlevel" type=
"NLogLevel">
111 <xs:documentation>Maximum level that this rule matches.
</xs:documentation>
114 <xs:attribute name=
"level" type=
"NLogLevel">
116 <xs:documentation>Level that this rule matches.
</xs:documentation>
119 <xs:attribute name=
"writeTo" type=
"NLogTargetIDList">
121 <xs:documentation>Comma separated list of target names.
</xs:documentation>
124 <xs:attribute name=
"final" type=
"xs:boolean" default=
"false">
126 <xs:documentation>Ignore further rules if this one matches.
</xs:documentation>
130 <xs:complexType name=
"NLogFilters">
131 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
132 <xs:element name=
"whenNotEqual" type=
"WhenNotEqualFilter" />
133 <xs:element name=
"whenEqual" type=
"WhenEqualFilter" />
134 <xs:element name=
"whenNotContains" type=
"WhenNotContainsFilter" />
135 <xs:element name=
"whenContains" type=
"WhenContainsFilter" />
136 <xs:element name=
"when" type=
"ConditionBasedFilter" />
139 <xs:simpleType name=
"NLogLevel">
140 <xs:restriction base=
"xs:string">
141 <xs:enumeration value=
"Trace" />
142 <xs:enumeration value=
"Debug" />
143 <xs:enumeration value=
"Info" />
144 <xs:enumeration value=
"Warn" />
145 <xs:enumeration value=
"Error" />
146 <xs:enumeration value=
"Fatal" />
149 <xs:simpleType name=
"NLogLevelList">
150 <xs:restriction base=
"xs:string">
151 <xs:pattern value=
"(|Trace|Debug|Info|Warn|Error|Fatal)(,(Trace|Debug|Info|Warn|Error|Fatal))*" />
154 <xs:complexType name=
"NLogInclude">
155 <xs:attribute name=
"file" type=
"NLogLayout" use=
"required">
157 <xs:documentation>Name of the file to be included. The name is relative to the name of the current config file.
</xs:documentation>
160 <xs:attribute name=
"ignoreErrors" type=
"xs:boolean" use=
"optional" default=
"false">
162 <xs:documentation>Ignore any errors in the include file.
</xs:documentation>
166 <xs:complexType name=
"NLogVariable">
167 <xs:attribute name=
"name" type=
"xs:string" use=
"required">
169 <xs:documentation>Variable name.
</xs:documentation>
172 <xs:attribute name=
"value" type=
"NLogLayout" use=
"required">
174 <xs:documentation>Variable value.
</xs:documentation>
178 <xs:simpleType name=
"NLogTargetIDList">
179 <xs:restriction base=
"xs:string">
180 <xs:pattern value=
"(|([a-zA-Z][a-zA-Z0-9_\-]*))(,([a-zA-Z][a-zA-Z0-9_\-]*))*" />
183 <xs:complexType name=
"Target" abstract=
"true">
184 <xs:attribute name=
"name" use=
"optional" />
186 <xs:complexType name=
"ILayout" abstract=
"true">
188 <xs:complexType name=
"ILayoutWithHeaderAndFooter" abstract=
"true">
190 <xs:extension base=
"ILayout" />
193 <xs:complexType name=
"TargetWithLayout" abstract=
"true">
195 <xs:extension base=
"Target">
196 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
197 <xs:element name=
"layout" type=
"ILayout" minOccurs=
"0" maxOccurs=
"1" />
199 <xs:attribute name=
"layout" type=
"NLogLayout" use=
"optional" />
203 <xs:complexType name=
"TargetWithLayoutHeaderAndFooter" abstract=
"true">
205 <xs:extension base=
"TargetWithLayout">
206 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
207 <xs:element name=
"header" type=
"ILayout" minOccurs=
"0" maxOccurs=
"1" />
208 <xs:element name=
"footer" type=
"ILayout" minOccurs=
"0" maxOccurs=
"1" />
210 <xs:attribute name=
"layout" type=
"NLogLayout" default=
"${longdate}|${level:uppercase=true}|${logger}|${message}">
212 <xs:documentation> The text to be rendered. Default value is: ${longdate}|${level:uppercase=true}|${logger}|${message}
</xs:documentation>
215 <xs:attribute name=
"header" type=
"NLogLayout">
217 <xs:documentation> Header
</xs:documentation>
220 <xs:attribute name=
"footer" type=
"NLogLayout">
222 <xs:documentation> Footer
</xs:documentation>
228 <xs:simpleType name=
"NLogLayout">
229 <xs:restriction base=
"xs:string">
230 <xs:pattern value=
"((\$\{[a-zA-Z][a-zA-Z0-9\-]*(\:[a-zA-Z][a-zA-Z0-9\-]*\=([^\\\:]|\\.)*)*\})|([^\$])|(\$[^\{]))*" />
231 <xs:minLength value=
"1" />
234 <xs:simpleType name=
"NLogCondition">
235 <xs:restriction base=
"xs:string">
236 <xs:minLength value=
"1" />
239 <xs:complexType name=
"PostFilteringWrapper">
241 <xs:extension base=
"WrapperTargetBase">
242 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
243 <xs:element name=
"defaultFilter" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
244 <xs:element name=
"when" type=
"FilteringRule" minOccurs=
"0" maxOccurs=
"unbounded" />
246 <xs:attribute name=
"defaultFilter" type=
"xs:string">
248 <xs:documentation> Default filter to be applied when no specific rule matches.
</xs:documentation>
254 <xs:complexType name=
"WrapperTargetBase" abstract=
"true">
256 <xs:extension base=
"Target">
257 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
258 <xs:element name=
"target" type=
"Target" minOccurs=
"1" maxOccurs=
"1" />
259 <xs:element name=
"wrapper-target" type=
"WrapperTargetBase" minOccurs=
"1" maxOccurs=
"1" />
260 <xs:element name=
"compound-target" type=
"CompoundTargetBase" minOccurs=
"1" maxOccurs=
"1" />
265 <xs:complexType name=
"FilteringRule">
266 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
267 <xs:element name=
"exists" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
268 <xs:element name=
"filter" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
270 <xs:attribute name=
"exists" type=
"NLogCondition">
272 <xs:documentation> Condition to be tested.
</xs:documentation>
275 <xs:attribute name=
"filter" type=
"NLogCondition">
277 <xs:documentation> Resulting filter to be applied when the condition matches.
</xs:documentation>
281 <xs:complexType name=
"EventLog">
283 <xs:extension base=
"TargetWithLayout">
284 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
285 <xs:element name=
"machineName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
286 <xs:element name=
"eventID" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
287 <xs:element name=
"category" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
288 <xs:element name=
"source" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
289 <xs:element name=
"log" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
291 <xs:attribute name=
"machineName" type=
"xs:string" default=
".">
293 <xs:documentation> Machine name on which Event Log service is running. Default value is: .
</xs:documentation>
296 <xs:attribute name=
"eventID" type=
"NLogLayout">
298 <xs:documentation> Layout that renders event ID.
</xs:documentation>
301 <xs:attribute name=
"category" type=
"NLogLayout">
303 <xs:documentation> Layout that renders event Category.
</xs:documentation>
306 <xs:attribute name=
"source" type=
"xs:string">
308 <xs:documentation> The value to be used as the event Source.
</xs:documentation>
311 <xs:attribute name=
"log" type=
"xs:string" default=
"Application">
313 <xs:documentation> Name of the Event Log to write to. This can be System, Application or any user-defined name. Default value is: Application
</xs:documentation>
319 <xs:complexType name=
"WebService">
321 <xs:extension base=
"MethodCallTargetBase">
322 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
323 <xs:element name=
"url" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
324 <xs:element name=
"methodName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
325 <xs:element name=
"namespace" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
326 <xs:element name=
"protocol" type=
"WebServiceProtocol" minOccurs=
"0" maxOccurs=
"1" />
328 <xs:attribute name=
"url" type=
"xs:string">
330 <xs:documentation> Web service URL.
</xs:documentation>
333 <xs:attribute name=
"methodName" type=
"xs:string">
335 <xs:documentation> Web service method name.
</xs:documentation>
338 <xs:attribute name=
"namespace" type=
"xs:string">
340 <xs:documentation> Web service namespace.
</xs:documentation>
343 <xs:attribute name=
"protocol" type=
"WebServiceProtocol" default=
"Soap11">
345 <xs:documentation> The protocol to be used when calling web service. Default value is: Soap11
</xs:documentation>
351 <xs:complexType name=
"MethodCallTargetBase" abstract=
"true">
353 <xs:extension base=
"Target">
354 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
355 <xs:element name=
"parameter" type=
"MethodCallParameter" minOccurs=
"0" maxOccurs=
"unbounded" />
360 <xs:complexType name=
"MethodCallParameter">
361 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
362 <xs:element name=
"name" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
363 <xs:element name=
"type" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
364 <xs:element name=
"layout" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
365 <xs:element name=
"compiledLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
367 <xs:attribute name=
"name" type=
"xs:string">
369 <xs:documentation> The name of the parameter.
</xs:documentation>
372 <xs:attribute name=
"type" type=
"xs:string">
374 <xs:documentation> The type of the parameter.
</xs:documentation>
377 <xs:attribute name=
"layout" type=
"xs:string">
379 <xs:documentation> The layout that should be use to calcuate the value for the parameter.
</xs:documentation>
383 <xs:simpleType name=
"WebServiceProtocol">
384 <xs:restriction base=
"xs:string">
385 <xs:enumeration value=
"Soap11" />
386 <xs:enumeration value=
"Soap12" />
387 <xs:enumeration value=
"HttpPost" />
388 <xs:enumeration value=
"HttpGet" />
391 <xs:complexType name=
"Mail">
393 <xs:extension base=
"TargetWithLayoutHeaderAndFooter">
394 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
395 <xs:element name=
"from" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
396 <xs:element name=
"to" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
397 <xs:element name=
"cc" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
398 <xs:element name=
"bcc" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
399 <xs:element name=
"addNewLines" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
400 <xs:element name=
"subject" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
401 <xs:element name=
"body" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
402 <xs:element name=
"encoding" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
403 <xs:element name=
"html" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
404 <xs:element name=
"smtpServer" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
405 <xs:element name=
"smtpAuthentication" type=
"SmtpAuthenticationMode" minOccurs=
"0" maxOccurs=
"1" />
406 <xs:element name=
"smtpUsername" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
407 <xs:element name=
"smtpPassword" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
408 <xs:element name=
"smtpPort" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
410 <xs:attribute name=
"from" type=
"xs:string">
412 <xs:documentation> Sender's email address (e.g. joe@domain.com)
</xs:documentation>
415 <xs:attribute name=
"to" type=
"xs:string">
417 <xs:documentation> Recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com)
</xs:documentation>
420 <xs:attribute name=
"cc" type=
"xs:string">
422 <xs:documentation> CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com)
</xs:documentation>
425 <xs:attribute name=
"bcc" type=
"xs:string">
427 <xs:documentation> BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com)
</xs:documentation>
430 <xs:attribute name=
"addNewLines" type=
"xs:boolean">
432 <xs:documentation> Whether to add new lines between log entries.
</xs:documentation>
435 <xs:attribute name=
"subject" type=
"xs:string" default=
"Message from NLog on ${machinename}">
437 <xs:documentation> Mail subject. Default value is: Message from NLog on ${machinename}
</xs:documentation>
440 <xs:attribute name=
"body" type=
"xs:string" default=
"${message}">
442 <xs:documentation> Mail message body (repeated for each log message send in one mail) Default value is: ${message}
</xs:documentation>
445 <xs:attribute name=
"encoding" type=
"xs:string" default=
"UTF8">
447 <xs:documentation> Encoding to be used for sending e-mail. Default value is: UTF8
</xs:documentation>
450 <xs:attribute name=
"html" type=
"xs:boolean" default=
"false">
452 <xs:documentation> Send message as HTML instead of plain text. Default value is: false
</xs:documentation>
455 <xs:attribute name=
"smtpServer" type=
"xs:string">
457 <xs:documentation> SMTP Server to be used for sending.
</xs:documentation>
460 <xs:attribute name=
"smtpAuthentication" type=
"SmtpAuthenticationMode" default=
"None">
462 <xs:documentation> SMTP Authentication mode. Default value is: None
</xs:documentation>
465 <xs:attribute name=
"smtpUsername" type=
"xs:string">
467 <xs:documentation> The username used to connect to SMTP server (used when SmtpAuthentication is set to
"basic").
</xs:documentation>
470 <xs:attribute name=
"smtpPassword" type=
"xs:string">
472 <xs:documentation> The password used to authenticate against SMTP server (used when SmtpAuthentication is set to
"basic").
</xs:documentation>
475 <xs:attribute name=
"smtpPort" type=
"xs:integer" default=
"25">
477 <xs:documentation> The port that SMTP Server is listening on. Default value is:
25</xs:documentation>
483 <xs:simpleType name=
"SmtpAuthenticationMode">
484 <xs:restriction base=
"xs:string">
485 <xs:enumeration value=
"None" />
486 <xs:enumeration value=
"Basic" />
487 <xs:enumeration value=
"Ntlm" />
490 <xs:complexType name=
"PerfCounter">
492 <xs:extension base=
"Target">
493 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
494 <xs:element name=
"autoCreate" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
495 <xs:element name=
"categoryName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
496 <xs:element name=
"counterName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
497 <xs:element name=
"instanceName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
498 <xs:element name=
"counterType" type=
"PerformanceCounterType" minOccurs=
"0" maxOccurs=
"1" />
500 <xs:attribute name=
"autoCreate" type=
"xs:boolean">
502 <xs:documentation> Whether performance counter should be automatically created.
</xs:documentation>
505 <xs:attribute name=
"categoryName" type=
"xs:string">
507 <xs:documentation> Performance counter category.
</xs:documentation>
510 <xs:attribute name=
"counterName" type=
"xs:string">
512 <xs:documentation> Name of the performance counter.
</xs:documentation>
515 <xs:attribute name=
"instanceName" type=
"xs:string">
517 <xs:documentation> Instance name.
</xs:documentation>
520 <xs:attribute name=
"counterType" type=
"PerformanceCounterType">
522 <xs:documentation> Performance counter type.
</xs:documentation>
528 <xs:simpleType name=
"PerformanceCounterType">
529 <xs:restriction base=
"xs:string">
530 <xs:enumeration value=
"NumberOfItems32" />
531 <xs:enumeration value=
"NumberOfItems64" />
532 <xs:enumeration value=
"NumberOfItemsHEX32" />
533 <xs:enumeration value=
"NumberOfItemsHEX64" />
534 <xs:enumeration value=
"RateOfCountsPerSecond32" />
535 <xs:enumeration value=
"RateOfCountsPerSecond64" />
536 <xs:enumeration value=
"CountPerTimeInterval32" />
537 <xs:enumeration value=
"CountPerTimeInterval64" />
538 <xs:enumeration value=
"RawFraction" />
539 <xs:enumeration value=
"RawBase" />
540 <xs:enumeration value=
"AverageTimer32" />
541 <xs:enumeration value=
"AverageBase" />
542 <xs:enumeration value=
"AverageCount64" />
543 <xs:enumeration value=
"SampleFraction" />
544 <xs:enumeration value=
"SampleCounter" />
545 <xs:enumeration value=
"SampleBase" />
546 <xs:enumeration value=
"CounterTimer" />
547 <xs:enumeration value=
"CounterTimerInverse" />
548 <xs:enumeration value=
"Timer100Ns" />
549 <xs:enumeration value=
"Timer100NsInverse" />
550 <xs:enumeration value=
"ElapsedTime" />
551 <xs:enumeration value=
"CounterMultiTimer" />
552 <xs:enumeration value=
"CounterMultiTimerInverse" />
553 <xs:enumeration value=
"CounterMultiTimer100Ns" />
554 <xs:enumeration value=
"CounterMultiTimer100NsInverse" />
555 <xs:enumeration value=
"CounterMultiBase" />
556 <xs:enumeration value=
"CounterDelta32" />
557 <xs:enumeration value=
"CounterDelta64" />
560 <xs:complexType name=
"Memory">
562 <xs:extension base=
"TargetWithLayout">
563 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
567 <xs:complexType name=
"MethodCall">
569 <xs:extension base=
"MethodCallTargetBase">
570 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
571 <xs:element name=
"className" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
572 <xs:element name=
"methodName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
574 <xs:attribute name=
"className" type=
"xs:string">
576 <xs:documentation> The class name.
</xs:documentation>
579 <xs:attribute name=
"methodName" type=
"xs:string">
581 <xs:documentation> The method name. The method must be public and static.
</xs:documentation>
587 <xs:complexType name=
"RichTextBox">
589 <xs:extension base=
"TargetWithLayout">
590 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
591 <xs:element name=
"controlName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
592 <xs:element name=
"formName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
593 <xs:element name=
"useDefaultRowColoringRules" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
594 <xs:element name=
"row-coloring" type=
"RichTextBoxRowColoringRule" minOccurs=
"0" maxOccurs=
"unbounded" />
595 <xs:element name=
"word-coloring" type=
"RichTextBoxWordColoringRule" minOccurs=
"0" maxOccurs=
"unbounded" />
597 <xs:attribute name=
"controlName" type=
"xs:string">
599 <xs:documentation> Name of RichTextBox to which Nlog will log
</xs:documentation>
602 <xs:attribute name=
"formName" type=
"xs:string">
604 <xs:documentation> Name of the Form on which the control is located. If there is no open form of a specified name than NLog will create a new one.
</xs:documentation>
607 <xs:attribute name=
"useDefaultRowColoringRules" type=
"xs:boolean" default=
"false">
609 <xs:documentation> Use default coloring rules Default value is: false
</xs:documentation>
615 <xs:complexType name=
"RichTextBoxRowColoringRule">
616 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
617 <xs:element name=
"condition" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
618 <xs:element name=
"fontColor" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
619 <xs:element name=
"backgroundColor" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
620 <xs:element name=
"style" type=
"FontStyle" minOccurs=
"0" maxOccurs=
"1" />
622 <xs:attribute name=
"condition" type=
"NLogCondition">
624 <xs:documentation> The condition that must be met in order to set the specified font color.
</xs:documentation>
627 <xs:attribute name=
"fontColor" type=
"xs:string" default=
"Empty">
629 <xs:documentation> The font color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed Default value is: Empty
</xs:documentation>
632 <xs:attribute name=
"backgroundColor" type=
"xs:string" default=
"Empty">
634 <xs:documentation> The background color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed Background color will be set only in .net
2.0 Default value is: Empty
</xs:documentation>
637 <xs:attribute name=
"style" type=
"FontStyle">
639 <xs:documentation> Font style of matched text. Possible values are the same as in FontStyle enum in System.Drawing
</xs:documentation>
643 <xs:simpleType name=
"FontStyle">
644 <xs:restriction base=
"xs:string">
645 <xs:enumeration value=
"Regular" />
646 <xs:enumeration value=
"Bold" />
647 <xs:enumeration value=
"Italic" />
648 <xs:enumeration value=
"Underline" />
649 <xs:enumeration value=
"Strikeout" />
652 <xs:complexType name=
"RichTextBoxWordColoringRule">
653 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
654 <xs:element name=
"regex" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
655 <xs:element name=
"text" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
656 <xs:element name=
"style" type=
"FontStyle" minOccurs=
"0" maxOccurs=
"1" />
657 <xs:element name=
"wholeWords" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
658 <xs:element name=
"ignoreCase" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
659 <xs:element name=
"fontColor" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
660 <xs:element name=
"backgroundColor" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
662 <xs:attribute name=
"regex" type=
"xs:string">
664 <xs:documentation> The regular expression to be matched. You must specify either text or regex.
</xs:documentation>
667 <xs:attribute name=
"text" type=
"xs:string">
669 <xs:documentation> The text to be matched. You must specify either text or regex.
</xs:documentation>
672 <xs:attribute name=
"style" type=
"FontStyle">
674 <xs:documentation> Font style of matched text. Possible values are the same as in FontStyle enum in System.Drawing
</xs:documentation>
677 <xs:attribute name=
"wholeWords" type=
"xs:boolean" default=
"false">
679 <xs:documentation> Match whole words only. Default value is: false
</xs:documentation>
682 <xs:attribute name=
"ignoreCase" type=
"xs:boolean" default=
"false">
684 <xs:documentation> Ignore case when comparing texts. Default value is: false
</xs:documentation>
687 <xs:attribute name=
"fontColor" type=
"xs:string" default=
"Empty">
689 <xs:documentation> The font color. Names are identical with KnownColor enum extended with Empty value which means that font color won't be changed Default value is: Empty
</xs:documentation>
692 <xs:attribute name=
"backgroundColor" type=
"xs:string" default=
"Empty">
694 <xs:documentation> The background color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed Background color will be set only in .net
2.0 Default value is: Empty
</xs:documentation>
698 <xs:complexType name=
"AutoFlushWrapper">
700 <xs:extension base=
"WrapperTargetBase">
701 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
705 <xs:complexType name=
"BufferingWrapper">
707 <xs:extension base=
"WrapperTargetBase">
708 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
709 <xs:element name=
"bufferSize" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
710 <xs:element name=
"flushTimeout" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
712 <xs:attribute name=
"bufferSize" type=
"xs:integer" default=
"100">
714 <xs:documentation> Number of log events to be buffered. Default value is:
100</xs:documentation>
717 <xs:attribute name=
"flushTimeout" type=
"xs:integer" default=
"-1">
719 <xs:documentation> Flush the contents of buffer if there's no write in the specified period of time (milliseconds). Use -
1 to disable timed flushes. Default value is: -
1</xs:documentation>
725 <xs:complexType name=
"SplitGroup">
727 <xs:extension base=
"CompoundTargetBase">
728 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
732 <xs:complexType name=
"CompoundTargetBase" abstract=
"true">
734 <xs:extension base=
"Target">
735 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
736 <xs:element name=
"target" type=
"Target" minOccurs=
"1" maxOccurs=
"unbounded" />
737 <xs:element name=
"wrapper-target" type=
"WrapperTargetBase" minOccurs=
"1" maxOccurs=
"1" />
738 <xs:element name=
"compound-target" type=
"CompoundTargetBase" minOccurs=
"1" maxOccurs=
"1" />
743 <xs:complexType name=
"Chainsaw">
745 <xs:extension base=
"NLogViewer">
746 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
750 <xs:complexType name=
"NLogViewer">
752 <xs:extension base=
"Network">
753 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
754 <xs:element name=
"includeNLogData" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
755 <xs:element name=
"appInfo" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
756 <xs:element name=
"includeCallSite" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
757 <xs:element name=
"includeSourceInfo" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
758 <xs:element name=
"includeMDC" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
759 <xs:element name=
"includeNDC" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
760 <xs:element name=
"parameter" type=
"NLogViewerParameterInfo" minOccurs=
"0" maxOccurs=
"unbounded" />
762 <xs:attribute name=
"includeNLogData" type=
"xs:boolean">
764 <xs:documentation> Include NLog-specific extensions to log4j schema.
</xs:documentation>
767 <xs:attribute name=
"appInfo" type=
"xs:string">
769 <xs:documentation> The AppInfo field. By default it's the friendly name of the current AppDomain.
</xs:documentation>
772 <xs:attribute name=
"includeCallSite" type=
"xs:boolean">
774 <xs:documentation> Include call site (class and method name) in the information sent over the network.
</xs:documentation>
777 <xs:attribute name=
"includeSourceInfo" type=
"xs:boolean">
779 <xs:documentation> Include source info (file name and line number) in the information sent over the network.
</xs:documentation>
782 <xs:attribute name=
"includeMDC" type=
"xs:boolean">
784 <xs:documentation> Include MDC dictionary in the information sent over the network.
</xs:documentation>
787 <xs:attribute name=
"includeNDC" type=
"xs:boolean">
789 <xs:documentation> Include NDC stack.
</xs:documentation>
795 <xs:complexType name=
"Network">
797 <xs:extension base=
"TargetWithLayout">
798 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
799 <xs:element name=
"address" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
800 <xs:element name=
"addressLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
801 <xs:element name=
"keepConnection" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
802 <xs:element name=
"newLine" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
803 <xs:element name=
"maxMessageSize" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
804 <xs:element name=
"onOverflow" type=
"OverflowAction" minOccurs=
"0" maxOccurs=
"1" />
805 <xs:element name=
"encoding" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
807 <xs:attribute name=
"address" type=
"xs:string">
809 <xs:documentation> The network address. Can be tcp://host:port or udp://host:port
</xs:documentation>
812 <xs:attribute name=
"keepConnection" type=
"xs:boolean" default=
"true">
814 <xs:documentation> Keep connection open whenever possible. Default value is: true
</xs:documentation>
817 <xs:attribute name=
"newLine" type=
"xs:boolean" default=
"false">
819 <xs:documentation> Append newline at the end of log message. Default value is: false
</xs:documentation>
822 <xs:attribute name=
"maxMessageSize" type=
"xs:integer" default=
"65000">
824 <xs:documentation> Maximum message size in bytes. Default value is:
65000</xs:documentation>
827 <xs:attribute name=
"onOverflow" type=
"OverflowAction">
829 <xs:documentation> Action that should be taken if the message is larger than maxMessageSize
</xs:documentation>
832 <xs:attribute name=
"encoding" type=
"xs:string" default=
"utf-8">
834 <xs:documentation> Encoding Default value is: utf-
8</xs:documentation>
840 <xs:simpleType name=
"OverflowAction">
841 <xs:restriction base=
"xs:string">
842 <xs:enumeration value=
"Error" />
843 <xs:enumeration value=
"Split" />
844 <xs:enumeration value=
"Discard" />
847 <xs:complexType name=
"NLogViewerParameterInfo">
848 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
849 <xs:element name=
"name" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
850 <xs:element name=
"layout" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
851 <xs:element name=
"compiledLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
853 <xs:attribute name=
"name" type=
"xs:string">
855 <xs:documentation> Viewer parameter name.
</xs:documentation>
858 <xs:attribute name=
"layout" type=
"NLogLayout">
860 <xs:documentation> The layout that should be use to calcuate the value for the parameter.
</xs:documentation>
864 <xs:complexType name=
"RoundRobinGroup">
866 <xs:extension base=
"CompoundTargetBase">
867 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
871 <xs:complexType name=
"RetryingWrapper">
873 <xs:extension base=
"WrapperTargetBase">
874 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
875 <xs:element name=
"retryCount" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
876 <xs:element name=
"retryDelayMilliseconds" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
878 <xs:attribute name=
"retryCount" type=
"xs:integer" default=
"3">
880 <xs:documentation> Number of retries that should be attempted on the wrapped target in case of a failure. Default value is:
3</xs:documentation>
883 <xs:attribute name=
"retryDelayMilliseconds" type=
"xs:integer" default=
"100">
885 <xs:documentation> The time to wait between retries in milliseconds. Default value is:
100</xs:documentation>
891 <xs:complexType name=
"Console">
893 <xs:extension base=
"TargetWithLayoutHeaderAndFooter">
894 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
895 <xs:element name=
"error" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
897 <xs:attribute name=
"error" type=
"xs:boolean" default=
"false">
899 <xs:documentation> Send the logging messages to the standard error instead of the standard output. Default value is: false
</xs:documentation>
905 <xs:complexType name=
"ImpersonatingWrapper">
907 <xs:extension base=
"WrapperTargetBase">
908 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
909 <xs:element name=
"username" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
910 <xs:element name=
"password" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
911 <xs:element name=
"domain" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
912 <xs:element name=
"logonType" type=
"SecurityLogonType" minOccurs=
"0" maxOccurs=
"1" />
913 <xs:element name=
"logonProvider" type=
"LogonProviderType" minOccurs=
"0" maxOccurs=
"1" />
914 <xs:element name=
"impersonationLevel" type=
"SecurityImpersonationLevel" minOccurs=
"0" maxOccurs=
"1" />
915 <xs:element name=
"revertToSelf" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
917 <xs:attribute name=
"username" type=
"xs:string">
919 <xs:documentation> Username to change context to
</xs:documentation>
922 <xs:attribute name=
"password" type=
"xs:string">
924 <xs:documentation> Password
</xs:documentation>
927 <xs:attribute name=
"domain" type=
"xs:string" default=
".">
929 <xs:documentation> Windows domain name to change context to. Default value is: .
</xs:documentation>
932 <xs:attribute name=
"logonType" type=
"SecurityLogonType">
934 <xs:documentation> Logon Type.
</xs:documentation>
937 <xs:attribute name=
"logonProvider" type=
"LogonProviderType">
939 <xs:documentation> Logon Provider.
</xs:documentation>
942 <xs:attribute name=
"impersonationLevel" type=
"SecurityImpersonationLevel">
944 <xs:documentation> Impersonation level.
</xs:documentation>
947 <xs:attribute name=
"revertToSelf" type=
"xs:boolean" default=
"false">
949 <xs:documentation> Revert to the credentials of the process instead of impersonating another user. Default value is: false
</xs:documentation>
955 <xs:simpleType name=
"SecurityLogonType">
956 <xs:restriction base=
"xs:string">
957 <xs:enumeration value=
"Interactive" />
958 <xs:enumeration value=
"Network" />
959 <xs:enumeration value=
"Batch" />
960 <xs:enumeration value=
"Service" />
961 <xs:enumeration value=
"NetworkClearText" />
962 <xs:enumeration value=
"NewCredentials" />
965 <xs:simpleType name=
"LogonProviderType">
966 <xs:restriction base=
"xs:string">
967 <xs:enumeration value=
"Default" />
970 <xs:simpleType name=
"SecurityImpersonationLevel">
971 <xs:restriction base=
"xs:string">
972 <xs:enumeration value=
"Anonymous" />
973 <xs:enumeration value=
"Identification" />
974 <xs:enumeration value=
"Impersonation" />
975 <xs:enumeration value=
"Delegation" />
978 <xs:complexType name=
"File">
980 <xs:extension base=
"TargetWithLayoutHeaderAndFooter">
981 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
982 <xs:element name=
"fileName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
983 <xs:element name=
"createDirs" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
984 <xs:element name=
"openFileCacheSize" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
985 <xs:element name=
"openFileCacheTimeout" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
986 <xs:element name=
"deleteOldFileOnStartup" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
987 <xs:element name=
"replaceFileContentsOnEachWrite" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
988 <xs:element name=
"keepFileOpen" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
989 <xs:element name=
"enableFileDelete" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
990 <xs:element name=
"fileAttributes" type=
"Win32FileAttributes" minOccurs=
"0" maxOccurs=
"1" />
991 <xs:element name=
"lineEnding" type=
"LineEndingMode" minOccurs=
"0" maxOccurs=
"1" />
992 <xs:element name=
"autoFlush" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
993 <xs:element name=
"bufferSize" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
994 <xs:element name=
"encoding" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
995 <xs:element name=
"concurrentWrites" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
996 <xs:element name=
"networkWrites" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
997 <xs:element name=
"concurrentWriteAttempts" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
998 <xs:element name=
"archiveAboveSize" type=
"xs:long" minOccurs=
"0" maxOccurs=
"1" />
999 <xs:element name=
"archiveEvery" type=
"ArchiveEveryMode" minOccurs=
"0" maxOccurs=
"1" />
1000 <xs:element name=
"archiveFileName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1001 <xs:element name=
"concurrentWriteAttemptDelay" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1002 <xs:element name=
"maxArchiveFiles" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1003 <xs:element name=
"archiveNumbering" type=
"ArchiveNumberingMode" minOccurs=
"0" maxOccurs=
"1" />
1005 <xs:attribute name=
"fileName" type=
"NLogLayout">
1007 <xs:documentation> The name of the file to write to.
</xs:documentation>
1010 <xs:attribute name=
"createDirs" type=
"xs:boolean" default=
"true">
1012 <xs:documentation> Create directories if they don't exist. Default value is: true
</xs:documentation>
1015 <xs:attribute name=
"openFileCacheSize" type=
"xs:integer" default=
"5">
1017 <xs:documentation> The 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). Default value is:
5</xs:documentation>
1020 <xs:attribute name=
"openFileCacheTimeout" type=
"xs:integer" default=
"-1">
1022 <xs:documentation> Maximum number of seconds that files are kept open. If this number is negative. Default value is: -
1</xs:documentation>
1025 <xs:attribute name=
"deleteOldFileOnStartup" type=
"xs:boolean" default=
"false">
1027 <xs:documentation> Delete old log file on startup. Default value is: false
</xs:documentation>
1030 <xs:attribute name=
"replaceFileContentsOnEachWrite" type=
"xs:boolean" default=
"false">
1032 <xs:documentation> Replace file contents on each write instead of appending log message at the end. Default value is: false
</xs:documentation>
1035 <xs:attribute name=
"keepFileOpen" type=
"xs:boolean" default=
"false">
1037 <xs:documentation> Keep log file open instead of opening and closing it on each logging event. Default value is: false
</xs:documentation>
1040 <xs:attribute name=
"enableFileDelete" type=
"xs:boolean" default=
"true">
1042 <xs:documentation> Enable log file(s) to be deleted. Default value is: true
</xs:documentation>
1045 <xs:attribute name=
"fileAttributes" type=
"Win32FileAttributes">
1047 <xs:documentation> File attributes (Windows only).
</xs:documentation>
1050 <xs:attribute name=
"lineEnding" type=
"LineEndingMode">
1052 <xs:documentation> Line ending mode.
</xs:documentation>
1055 <xs:attribute name=
"autoFlush" type=
"xs:boolean" default=
"true">
1057 <xs:documentation> Automatically flush the file buffers after each log message. Default value is: true
</xs:documentation>
1060 <xs:attribute name=
"bufferSize" type=
"xs:integer" default=
"32768">
1062 <xs:documentation> Log file buffer size in bytes. Default value is:
32768</xs:documentation>
1065 <xs:attribute name=
"encoding" type=
"xs:string">
1067 <xs:documentation> File encoding.
</xs:documentation>
1070 <xs:attribute name=
"concurrentWrites" type=
"xs:boolean" default=
"true">
1072 <xs:documentation> Enables concurrent writes to the log file by multiple processes on the same host. Default value is: true
</xs:documentation>
1075 <xs:attribute name=
"networkWrites" type=
"xs:boolean" default=
"false">
1077 <xs:documentation> Disables open-fi Default value is: false
</xs:documentation>
1080 <xs:attribute name=
"concurrentWriteAttempts" type=
"xs:integer" default=
"10">
1082 <xs:documentation> The number of times the write is appended on the file before NLog discards the log message. Default value is:
10</xs:documentation>
1085 <xs:attribute name=
"archiveAboveSize" type=
"xs:long">
1087 <xs:documentation> Automatically archive log files that exceed the specified size in bytes.
</xs:documentation>
1090 <xs:attribute name=
"archiveEvery" type=
"ArchiveEveryMode">
1092 <xs:documentation> Automatically archive log files every time the specified time passes. Possible options are: year, month, day, hour, minute. Files are moved to the archive as part of the write operation if the current period of time changes. For example if the current hour changes from
10 to
11, the first write that will occur on or after
11:
00 will trigger the archiving.
</xs:documentation>
1095 <xs:attribute name=
"archiveFileName" type=
"NLogLayout">
1097 <xs:documentation> The name of the file to be used for an archive. It may contain a special placeholder {#####} that will be replaced with a sequence of numbers depending on the archiving strategy. The number of hash characters used determines the number of numerical digits to be used for numbering files.
</xs:documentation>
1100 <xs:attribute name=
"concurrentWriteAttemptDelay" type=
"xs:integer" default=
"1">
1102 <xs:documentation> The delay in milliseconds to wait before attempting to write to the file again. Default value is:
1</xs:documentation>
1105 <xs:attribute name=
"maxArchiveFiles" type=
"xs:integer" default=
"9">
1107 <xs:documentation> Maximum number of archive files that should be kept. Default value is:
9</xs:documentation>
1110 <xs:attribute name=
"archiveNumbering" type=
"ArchiveNumberingMode">
1112 <xs:documentation> Determines the way file archives are numbered.
</xs:documentation>
1116 </xs:complexContent>
1118 <xs:simpleType name=
"Win32FileAttributes">
1119 <xs:restriction base=
"xs:string">
1120 <xs:enumeration value=
"Readonly" />
1121 <xs:enumeration value=
"Hidden" />
1122 <xs:enumeration value=
"System" />
1123 <xs:enumeration value=
"Archive" />
1124 <xs:enumeration value=
"Device" />
1125 <xs:enumeration value=
"Normal" />
1126 <xs:enumeration value=
"Temporary" />
1127 <xs:enumeration value=
"SparseFile" />
1128 <xs:enumeration value=
"ReparsePoint" />
1129 <xs:enumeration value=
"Compressed" />
1130 <xs:enumeration value=
"NotContentIndexed" />
1131 <xs:enumeration value=
"Encrypted" />
1132 <xs:enumeration value=
"WriteThrough" />
1133 <xs:enumeration value=
"NoBuffering" />
1134 <xs:enumeration value=
"DeleteOnClose" />
1135 <xs:enumeration value=
"PosixSemantics" />
1138 <xs:simpleType name=
"LineEndingMode">
1139 <xs:restriction base=
"xs:string">
1140 <xs:enumeration value=
"Default" />
1141 <xs:enumeration value=
"CRLF" />
1142 <xs:enumeration value=
"CR" />
1143 <xs:enumeration value=
"LF" />
1144 <xs:enumeration value=
"None" />
1147 <xs:simpleType name=
"ArchiveEveryMode">
1148 <xs:restriction base=
"xs:string">
1149 <xs:enumeration value=
"None" />
1150 <xs:enumeration value=
"Year" />
1151 <xs:enumeration value=
"Month" />
1152 <xs:enumeration value=
"Day" />
1153 <xs:enumeration value=
"Hour" />
1154 <xs:enumeration value=
"Minute" />
1157 <xs:simpleType name=
"ArchiveNumberingMode">
1158 <xs:restriction base=
"xs:string">
1159 <xs:enumeration value=
"Sequence" />
1160 <xs:enumeration value=
"Rolling" />
1163 <xs:complexType name=
"MSMQ">
1165 <xs:extension base=
"TargetWithLayout">
1166 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1167 <xs:element name=
"queue" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1168 <xs:element name=
"label" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1169 <xs:element name=
"createQueueIfNotExists" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1170 <xs:element name=
"encoding" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1171 <xs:element name=
"useXmlEncoding" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1172 <xs:element name=
"recoverable" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1174 <xs:attribute name=
"queue" type=
"NLogLayout">
1176 <xs:documentation> Name of the queue to write to.
</xs:documentation>
1179 <xs:attribute name=
"label" type=
"NLogLayout" default=
"NLog">
1181 <xs:documentation> The label to associate with each message. Default value is: NLog
</xs:documentation>
1184 <xs:attribute name=
"createQueueIfNotExists" type=
"xs:boolean" default=
"false">
1186 <xs:documentation> Create the queue if it doesn't exists. Default value is: false
</xs:documentation>
1189 <xs:attribute name=
"encoding" type=
"xs:string">
1191 <xs:documentation> Encoding to be used when writing text to the queue.
</xs:documentation>
1194 <xs:attribute name=
"useXmlEncoding" type=
"xs:boolean" default=
"false">
1196 <xs:documentation> Use the XML format when serializing message. Default value is: false
</xs:documentation>
1199 <xs:attribute name=
"recoverable" type=
"xs:boolean" default=
"false">
1201 <xs:documentation> Use recoverable messages (with guaranteed delivery). Default value is: false
</xs:documentation>
1205 </xs:complexContent>
1207 <xs:complexType name=
"ColoredConsole">
1209 <xs:extension base=
"TargetWithLayoutHeaderAndFooter">
1210 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1211 <xs:element name=
"errorStream" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1212 <xs:element name=
"useDefaultRowHighlightingRules" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1213 <xs:element name=
"highlight-row" type=
"ConsoleRowHighlightingRule" minOccurs=
"0" maxOccurs=
"unbounded" />
1214 <xs:element name=
"highlight-word" type=
"ConsoleWordHighlightingRule" minOccurs=
"0" maxOccurs=
"unbounded" />
1216 <xs:attribute name=
"errorStream" type=
"xs:boolean" default=
"false">
1218 <xs:documentation> Determines whether the error stream (stderr) should be used instead of the output stream (stdout). Default value is: false
</xs:documentation>
1221 <xs:attribute name=
"useDefaultRowHighlightingRules" type=
"xs:boolean" default=
"true">
1223 <xs:documentation> Use default row highlighting rules. Default value is: true
</xs:documentation>
1227 </xs:complexContent>
1229 <xs:complexType name=
"ConsoleRowHighlightingRule">
1230 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1231 <xs:element name=
"condition" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1232 <xs:element name=
"foregroundColor" type=
"ConsoleOutputColor" minOccurs=
"0" maxOccurs=
"1" />
1233 <xs:element name=
"backgroundColor" type=
"ConsoleOutputColor" minOccurs=
"0" maxOccurs=
"1" />
1235 <xs:attribute name=
"condition" type=
"NLogCondition">
1237 <xs:documentation> The condition that must be met in order to set the specified foreground and background color.
</xs:documentation>
1240 <xs:attribute name=
"foregroundColor" type=
"ConsoleOutputColor" default=
"NoChange">
1242 <xs:documentation> The foreground color. Default value is: NoChange
</xs:documentation>
1245 <xs:attribute name=
"backgroundColor" type=
"ConsoleOutputColor" default=
"NoChange">
1247 <xs:documentation> The background color. Default value is: NoChange
</xs:documentation>
1251 <xs:simpleType name=
"ConsoleOutputColor">
1252 <xs:restriction base=
"xs:string">
1253 <xs:enumeration value=
"Black" />
1254 <xs:enumeration value=
"DarkBlue" />
1255 <xs:enumeration value=
"DarkGreen" />
1256 <xs:enumeration value=
"DarkCyan" />
1257 <xs:enumeration value=
"DarkRed" />
1258 <xs:enumeration value=
"DarkMagenta" />
1259 <xs:enumeration value=
"DarkYellow" />
1260 <xs:enumeration value=
"Gray" />
1261 <xs:enumeration value=
"DarkGray" />
1262 <xs:enumeration value=
"Blue" />
1263 <xs:enumeration value=
"Green" />
1264 <xs:enumeration value=
"Cyan" />
1265 <xs:enumeration value=
"Red" />
1266 <xs:enumeration value=
"Magenta" />
1267 <xs:enumeration value=
"Yellow" />
1268 <xs:enumeration value=
"White" />
1269 <xs:enumeration value=
"NoChange" />
1272 <xs:complexType name=
"ConsoleWordHighlightingRule">
1273 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1274 <xs:element name=
"regex" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1275 <xs:element name=
"text" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1276 <xs:element name=
"wholeWords" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1277 <xs:element name=
"ignoreCase" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1278 <xs:element name=
"foregroundColor" type=
"ConsoleOutputColor" minOccurs=
"0" maxOccurs=
"1" />
1279 <xs:element name=
"backgroundColor" type=
"ConsoleOutputColor" minOccurs=
"0" maxOccurs=
"1" />
1281 <xs:attribute name=
"regex" type=
"xs:string">
1283 <xs:documentation> The regular expression to be matched. You must specify either text or regex.
</xs:documentation>
1286 <xs:attribute name=
"text" type=
"xs:string">
1288 <xs:documentation> The text to be matched. You must specify either text or regex.
</xs:documentation>
1291 <xs:attribute name=
"wholeWords" type=
"xs:boolean" default=
"false">
1293 <xs:documentation> Match whole words only. Default value is: false
</xs:documentation>
1296 <xs:attribute name=
"ignoreCase" type=
"xs:boolean" default=
"false">
1298 <xs:documentation> Ignore case when comparing texts. Default value is: false
</xs:documentation>
1301 <xs:attribute name=
"foregroundColor" type=
"ConsoleOutputColor" default=
"NoChange">
1303 <xs:documentation> The foreground color. Default value is: NoChange
</xs:documentation>
1306 <xs:attribute name=
"backgroundColor" type=
"ConsoleOutputColor" default=
"NoChange">
1308 <xs:documentation> The background color. Default value is: NoChange
</xs:documentation>
1312 <xs:complexType name=
"RepeatingWrapper">
1314 <xs:extension base=
"WrapperTargetBase">
1315 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1316 <xs:element name=
"repeatCount" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1318 <xs:attribute name=
"repeatCount" type=
"xs:integer" default=
"3">
1320 <xs:documentation> The number of times to repeat each log message. Default value is:
3</xs:documentation>
1324 </xs:complexContent>
1326 <xs:complexType name=
"Debug">
1328 <xs:extension base=
"TargetWithLayout">
1329 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
1331 </xs:complexContent>
1333 <xs:complexType name=
"Null">
1335 <xs:extension base=
"TargetWithLayout">
1336 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1337 <xs:element name=
"formatMessage" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1339 <xs:attribute name=
"formatMessage" type=
"xs:boolean" default=
"false">
1341 <xs:documentation> Perform layout calculation. Default value is: false
</xs:documentation>
1345 </xs:complexContent>
1347 <xs:complexType name=
"FallbackGroup">
1349 <xs:extension base=
"CompoundTargetBase">
1350 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1351 <xs:element name=
"returnToFirstOnSuccess" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1353 <xs:attribute name=
"returnToFirstOnSuccess" type=
"xs:boolean">
1355 <xs:documentation> Whether to return to the first target after any successful write.
</xs:documentation>
1359 </xs:complexContent>
1361 <xs:complexType name=
"FilteringWrapper">
1363 <xs:extension base=
"WrapperTargetBase">
1364 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1365 <xs:element name=
"condition" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1367 <xs:attribute name=
"condition" type=
"NLogCondition">
1369 <xs:documentation> Condition expression. Log events who meet this condition will be forwarded to the wrapped target.
</xs:documentation>
1373 </xs:complexContent>
1375 <xs:complexType name=
"Database">
1377 <xs:extension base=
"Target">
1378 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1379 <xs:element name=
"dbProvider" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1380 <xs:element name=
"connectionString" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1381 <xs:element name=
"keepConnection" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1382 <xs:element name=
"useTransactions" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1383 <xs:element name=
"dbHost" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1384 <xs:element name=
"dbHostLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
1385 <xs:element name=
"dbUserName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1386 <xs:element name=
"dbUserNameLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
1387 <xs:element name=
"dbPassword" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1388 <xs:element name=
"dbPasswordLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
1389 <xs:element name=
"dbDatabase" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1390 <xs:element name=
"dbDatabaseLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
1391 <xs:element name=
"commandText" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1392 <xs:element name=
"commandTextLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
1393 <xs:element name=
"parameter" type=
"DatabaseParameterInfo" minOccurs=
"0" maxOccurs=
"unbounded" />
1395 <xs:attribute name=
"dbProvider" type=
"xs:string" default=
"sqlserver">
1397 <xs:documentation> The name of the database provider. It can be: sqlserver, mssql, microsoft, msde (all for MSSQL database), oledb, odbc or other name in which case it's treated as a fully qualified type name of the data provider *Connection class. Default value is: sqlserver
</xs:documentation>
1400 <xs:attribute name=
"connectionString" type=
"NLogLayout">
1402 <xs:documentation> The connection string. When provided, it overrides the values specified in DBHost, DBUserName, DBPassword, DBDatabase.
</xs:documentation>
1405 <xs:attribute name=
"keepConnection" type=
"xs:boolean" default=
"true">
1407 <xs:documentation> Keep the database connection open between the log events. Default value is: true
</xs:documentation>
1410 <xs:attribute name=
"useTransactions" type=
"xs:boolean" default=
"false">
1412 <xs:documentation> Use database transactions. Some data providers require this. Default value is: false
</xs:documentation>
1415 <xs:attribute name=
"dbHost" type=
"NLogLayout">
1417 <xs:documentation> The 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>
1420 <xs:attribute name=
"dbUserName" type=
"NLogLayout">
1422 <xs:documentation> The 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>
1425 <xs:attribute name=
"dbPassword" type=
"NLogLayout">
1427 <xs:documentation> The database password. If the ConnectionString is not provided this value will be used to construct the
"Password=" part of the connection string.
</xs:documentation>
1430 <xs:attribute name=
"dbDatabase" type=
"NLogLayout">
1432 <xs:documentation> The database name. If the ConnectionString is not provided this value will be used to construct the
"Database=" part of the connection string.
</xs:documentation>
1435 <xs:attribute name=
"commandText" type=
"NLogLayout">
1437 <xs:documentation> The text of the SQL command to be run on each log level.
</xs:documentation>
1441 </xs:complexContent>
1443 <xs:complexType name=
"DatabaseParameterInfo">
1444 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1445 <xs:element name=
"name" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1446 <xs:element name=
"layout" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1447 <xs:element name=
"compiledLayout" type=
"SimpleLayout" minOccurs=
"0" maxOccurs=
"1" />
1448 <xs:element name=
"size" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1449 <xs:element name=
"precision" type=
"xs:byte" minOccurs=
"0" maxOccurs=
"1" />
1450 <xs:element name=
"scale" type=
"xs:byte" minOccurs=
"0" maxOccurs=
"1" />
1452 <xs:attribute name=
"name" type=
"xs:string">
1454 <xs:documentation> Database parameter name.
</xs:documentation>
1457 <xs:attribute name=
"layout" type=
"NLogLayout">
1459 <xs:documentation> The layout that should be use to calcuate the value for the parameter.
</xs:documentation>
1462 <xs:attribute name=
"size" type=
"xs:integer" default=
"0">
1464 <xs:documentation> Database parameter size. Default value is:
0</xs:documentation>
1467 <xs:attribute name=
"precision" type=
"xs:byte" default=
"0">
1469 <xs:documentation> Database parameter precision. Default value is:
0</xs:documentation>
1472 <xs:attribute name=
"scale" type=
"xs:byte" default=
"0">
1474 <xs:documentation> Database parameter scale. Default value is:
0</xs:documentation>
1478 <xs:complexType name=
"ASPResponse">
1480 <xs:extension base=
"TargetWithLayout">
1481 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1482 <xs:element name=
"addComments" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1484 <xs:attribute name=
"addComments" type=
"xs:boolean">
1486 <xs:documentation> Add
<!-- --
> comments around all written texts.
</xs:documentation>
1490 </xs:complexContent>
1492 <xs:complexType name=
"FormControl">
1494 <xs:extension base=
"TargetWithLayout">
1495 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1496 <xs:element name=
"controlName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1497 <xs:element name=
"append" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1498 <xs:element name=
"formName" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1500 <xs:attribute name=
"controlName" type=
"xs:string">
1502 <xs:documentation> Name of control to which Nlog will log
</xs:documentation>
1505 <xs:attribute name=
"append" type=
"xs:boolean">
1507 <xs:documentation> Setting to tell to append or overwrite the Text property of control
</xs:documentation>
1510 <xs:attribute name=
"formName" type=
"xs:string">
1512 <xs:documentation> Name of the Form on which the control is located.
</xs:documentation>
1516 </xs:complexContent>
1518 <xs:complexType name=
"RandomizeGroup">
1520 <xs:extension base=
"CompoundTargetBase">
1521 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
1523 </xs:complexContent>
1525 <xs:complexType name=
"ASPNetBufferingWrapper">
1527 <xs:extension base=
"WrapperTargetBase">
1528 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1529 <xs:element name=
"bufferSize" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1530 <xs:element name=
"growBufferAsNeeded" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1531 <xs:element name=
"bufferGrowLimit" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1533 <xs:attribute name=
"bufferSize" type=
"xs:integer" default=
"4000">
1535 <xs:documentation> The number of log events to be buffered. Default value is:
4000</xs:documentation>
1538 <xs:attribute name=
"growBufferAsNeeded" type=
"xs:boolean" default=
"false">
1540 <xs:documentation> Grow the buffer when it gets full. Default value is: false
</xs:documentation>
1543 <xs:attribute name=
"bufferGrowLimit" type=
"xs:integer">
1545 <xs:documentation> The maximum number of log events that the buffer can keep.
</xs:documentation>
1549 </xs:complexContent>
1551 <xs:complexType name=
"Debugger">
1553 <xs:extension base=
"TargetWithLayoutHeaderAndFooter">
1554 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
1556 </xs:complexContent>
1558 <xs:complexType name=
"ASPNetTrace">
1560 <xs:extension base=
"TargetWithLayout">
1561 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
1563 </xs:complexContent>
1565 <xs:complexType name=
"Trace">
1567 <xs:extension base=
"TargetWithLayout">
1568 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
1570 </xs:complexContent>
1572 <xs:complexType name=
"AsyncWrapper">
1574 <xs:extension base=
"WrapperTargetBase">
1575 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1576 <xs:element name=
"batchSize" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1577 <xs:element name=
"timeToSleepBetweenBatches" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1578 <xs:element name=
"overflowAction" type=
"AsyncTargetWrapperOverflowAction" minOccurs=
"0" maxOccurs=
"1" />
1579 <xs:element name=
"queueLimit" type=
"xs:integer" minOccurs=
"0" maxOccurs=
"1" />
1581 <xs:attribute name=
"batchSize" type=
"xs:integer" default=
"100">
1583 <xs:documentation> The number of log events that should be processed in a batch by the lazy writer thread. Default value is:
100</xs:documentation>
1586 <xs:attribute name=
"timeToSleepBetweenBatches" type=
"xs:integer" default=
"50">
1588 <xs:documentation> The time in milliseconds to sleep between batches. Default value is:
50</xs:documentation>
1591 <xs:attribute name=
"overflowAction" type=
"AsyncTargetWrapperOverflowAction" default=
"Discard">
1593 <xs:documentation> The action to be taken when the lazy writer thread request queue count exceeds the set limit. Default value is: Discard
</xs:documentation>
1596 <xs:attribute name=
"queueLimit" type=
"xs:integer" default=
"10000">
1598 <xs:documentation> The limit on the number of requests in the lazy writer thread request queue. Default value is:
10000</xs:documentation>
1602 </xs:complexContent>
1604 <xs:simpleType name=
"AsyncTargetWrapperOverflowAction">
1605 <xs:restriction base=
"xs:string">
1606 <xs:enumeration value=
"Grow" />
1607 <xs:enumeration value=
"Discard" />
1608 <xs:enumeration value=
"Block" />
1611 <xs:complexType name=
"MessageBox">
1613 <xs:extension base=
"TargetWithLayout">
1614 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1615 <xs:element name=
"caption" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1617 <xs:attribute name=
"caption" type=
"NLogLayout">
1619 <xs:documentation> Message box title.
</xs:documentation>
1623 </xs:complexContent>
1625 <xs:complexType name=
"OutputDebugString">
1627 <xs:extension base=
"TargetWithLayout">
1628 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded" />
1630 </xs:complexContent>
1632 <xs:complexType name=
"WhenNotEqualFilter">
1634 <xs:extension base=
"LayoutBasedFilter">
1635 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1636 <xs:element name=
"compareTo" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1637 <xs:element name=
"ignoreCase" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1639 <xs:attribute name=
"compareTo" type=
"xs:string">
1641 <xs:documentation> String to compare the layout to.
</xs:documentation>
1644 <xs:attribute name=
"ignoreCase" type=
"xs:boolean" default=
"false">
1646 <xs:documentation> Ignore case when comparing strings. Default value is: false
</xs:documentation>
1650 </xs:complexContent>
1652 <xs:complexType name=
"LayoutBasedFilter" abstract=
"true">
1654 <xs:extension base=
"Filter">
1655 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1656 <xs:element name=
"layout" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1658 <xs:attribute name=
"layout" type=
"xs:string">
1660 <xs:documentation> The layout text;
</xs:documentation>
1664 </xs:complexContent>
1666 <xs:complexType name=
"Filter" abstract=
"true">
1667 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1668 <xs:element name=
"action" type=
"FilterResult" minOccurs=
"0" maxOccurs=
"1" />
1670 <xs:attribute name=
"action" type=
"FilterResult">
1672 <xs:documentation> User-requested action to be taken when filter matches.
</xs:documentation>
1676 <xs:simpleType name=
"FilterResult">
1677 <xs:restriction base=
"xs:string">
1678 <xs:enumeration value=
"Neutral" />
1679 <xs:enumeration value=
"Log" />
1680 <xs:enumeration value=
"Ignore" />
1681 <xs:enumeration value=
"LogFinal" />
1682 <xs:enumeration value=
"IgnoreFinal" />
1685 <xs:complexType name=
"WhenEqualFilter">
1687 <xs:extension base=
"LayoutBasedFilter">
1688 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1689 <xs:element name=
"ignoreCase" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1690 <xs:element name=
"compareTo" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1692 <xs:attribute name=
"ignoreCase" type=
"xs:boolean" default=
"false">
1694 <xs:documentation> Ignore case when comparing strings. Default value is: false
</xs:documentation>
1697 <xs:attribute name=
"compareTo" type=
"xs:string">
1699 <xs:documentation> String to compare the layout to.
</xs:documentation>
1703 </xs:complexContent>
1705 <xs:complexType name=
"WhenNotContainsFilter">
1707 <xs:extension base=
"LayoutBasedFilter">
1708 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1709 <xs:element name=
"substring" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1710 <xs:element name=
"ignoreCase" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1712 <xs:attribute name=
"substring" type=
"xs:string">
1714 <xs:documentation> Substring to be matched.
</xs:documentation>
1717 <xs:attribute name=
"ignoreCase" type=
"xs:boolean" default=
"false">
1719 <xs:documentation> Ignore case when comparing strings. Default value is: false
</xs:documentation>
1723 </xs:complexContent>
1725 <xs:complexType name=
"WhenContainsFilter">
1727 <xs:extension base=
"LayoutBasedFilter">
1728 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1729 <xs:element name=
"ignoreCase" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1730 <xs:element name=
"substring" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1732 <xs:attribute name=
"ignoreCase" type=
"xs:boolean" default=
"false">
1734 <xs:documentation> Ignore case when comparing strings. Default value is: false
</xs:documentation>
1737 <xs:attribute name=
"substring" type=
"xs:string">
1739 <xs:documentation> Substring to be matched.
</xs:documentation>
1743 </xs:complexContent>
1745 <xs:complexType name=
"ConditionBasedFilter">
1747 <xs:extension base=
"Filter">
1748 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1749 <xs:element name=
"condition" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1751 <xs:attribute name=
"condition" type=
"xs:string">
1753 <xs:documentation> The condition expression.
</xs:documentation>
1757 </xs:complexContent>
1759 <xs:complexType name=
"CSVLayout">
1761 <xs:extension base=
"ILayout">
1762 <xs:choice minOccurs=
"0" maxOccurs=
"unbounded">
1763 <xs:element name=
"column" type=
"CsvColumn" minOccurs=
"0" maxOccurs=
"unbounded" />
1764 <xs:element name=
"withHeader" type=
"xs:boolean" minOccurs=
"0" maxOccurs=
"1" />
1765 <xs:element name=
"delimiter" type=
"ColumnDelimiterMode" minOccurs=
"0" maxOccurs=
"1" />
1766 <xs:element name=
"quoting" type=
"CsvQuotingMode" minOccurs=
"0" maxOccurs=
"1" />
1767 <xs:element name=
"quoteChar" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1768 <xs:element name=
"customColumnDelimiter" type=
"xs:string" minOccurs=
"0" maxOccurs=
"1" />
1769 <xs:element name=
"layout" type=
"ILayout" minOccurs=
"0" maxOccurs=
"1" />
1770 <xs:element name=
"header" type=
"ILayout" minOccurs=
"0" maxOccurs=
"1" />
1771 <xs:element name=
"footer" type=
"ILayout" minOccurs=
"0" maxOccurs=
"1" />
1773 <xs:attribute name=
"withHeader" type=
"xs:boolean">
1775 <xs:documentation> Whether CVS should include header.
</xs:documentation>
1778 <xs:attribute name=
"delimiter" type=
"ColumnDelimiterMode" default=
"Auto">
1780 <xs:documentation> Column delimiter. Default value is: Auto
</xs:documentation>
1783 <xs:attribute name=
"quoting" type=
"CsvQuotingMode">
1785 <xs:documentation> Quoting mode.
</xs:documentation>
1788 <xs:attribute name=
"quoteChar" type=
"xs:string" default=
""">
1790 <xs:documentation> Quote Character Default value is:
"</xs:documentation>
1793 <xs:attribute name="customColumnDelimiter
" type="xs:string
">
1795 <xs:documentation> Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom') </xs:documentation>
1799 </xs:complexContent>
1801 <xs:complexType name="CsvColumn
">
1802 <xs:choice minOccurs="0" maxOccurs="unbounded
">
1803 <xs:element name="name
" type="xs:string
" minOccurs="0" maxOccurs="1" />
1804 <xs:element name="layout
" type="xs:string
" minOccurs="0" maxOccurs="1" />
1805 <xs:element name="compiledLayout
" type="SimpleLayout
" minOccurs="0" maxOccurs="1" />
1807 <xs:attribute name="name
" type="xs:string
">
1809 <xs:documentation> The name of the column. </xs:documentation>
1812 <xs:attribute name="layout
" type="NLogLayout
">
1814 <xs:documentation> The layout that should be written in the column. </xs:documentation>
1818 <xs:simpleType name="ColumnDelimiterMode
">
1819 <xs:restriction base="xs:string
">
1820 <xs:enumeration value="Auto
" />
1821 <xs:enumeration value="Comma
" />
1822 <xs:enumeration value="Semicolon
" />
1823 <xs:enumeration value="Tab
" />
1824 <xs:enumeration value="Pipe
" />
1825 <xs:enumeration value="Space
" />
1826 <xs:enumeration value="Custom
" />
1829 <xs:simpleType name="CsvQuotingMode
">
1830 <xs:restriction base="xs:string
">
1831 <xs:enumeration value="All
" />
1832 <xs:enumeration value="Nothing
" />
1833 <xs:enumeration value="Auto
" />
1836 <xs:complexType name="LayoutWithHeaderAndFooter
">
1838 <xs:extension base="ILayout
">
1839 <xs:choice minOccurs="0" maxOccurs="unbounded
">
1840 <xs:element name="layout
" type="ILayout
" minOccurs="0" maxOccurs="1" />
1841 <xs:element name="header
" type="ILayout
" minOccurs="0" maxOccurs="1" />
1842 <xs:element name="footer
" type="ILayout
" minOccurs="0" maxOccurs="1" />
1845 </xs:complexContent>
1847 <xs:complexType name="Log4JXmlEventLayout
">
1849 <xs:extension base="ILayout
">
1850 <xs:choice minOccurs="0" maxOccurs="unbounded
" />
1852 </xs:complexContent>
1854 <xs:complexType name="SimpleLayout
">
1856 <xs:extension base="ILayout
">
1857 <xs:choice minOccurs="0" maxOccurs="unbounded
">
1858 <xs:element name="text
" type="xs:string
" minOccurs="0" maxOccurs="1" />
1860 <xs:attribute name="text
" type="NLogLayout
">
1862 <xs:documentation> The layout text </xs:documentation>
1866 </xs:complexContent>