-
-
Notifications
You must be signed in to change notification settings - Fork 172
/
logback.xsd
848 lines (812 loc) · 41.8 KB
/
logback.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
<?xml version="1.0" encoding="UTF-8"?>
<!--
logback.xml schema, based on:
* https://github.com/enricopulatzo/logback-XSD
* https://github.com/nkatsar/logback-XSD
Usage: Specify the xmlns, xmlns:xsi, and xsi:schemaLocation attributes on
`<configuration>` as seen here:
```
<?xml version="1.0" encoding="UTF-8"?>
<configuration
xmlns="https://tony19.github.io/logback-android/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://tony19.github.io/logback-android/xml https://cdn.jsdelivr.net/gh/tony19/logback-android/logback.xsd">
<appender name="logcat" class="ch.qos.logback.classic.android.LogcatAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="WARN">
<appender-ref ref="logcat" />
</root>
</configuration>
```
If in Android Studio, hover the remote URI in xsi:schemaLocation (i.e., the URI will appear red).
Right-click the red light-bulb hint, and select "Fetch remote resource".
If in Visual Studio Code, use an XML extension (such as RedHat's XML), which automatically
fetches the remote schema definition.
-->
<xsd:schema targetNamespace="https://tony19.github.io/logback-android/xml"
xmlns="https://tony19.github.io/logback-android/xml"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
version="1.0">
<xsd:element name="configuration" type="Configuration">
<xsd:annotation>
<xsd:documentation>Logback configuration context</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="included" type="Configuration">
<xsd:annotation>
<xsd:documentation>Logback configuration context in external file</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="Configuration">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="shutdownHook" type="ShutdownHook">
<xsd:annotation>
<xsd:documentation>Creates hook to be invoked as part of current VM's shutdown sequence</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="statusListener" type="StatusListener">
<xsd:annotation>
<xsd:documentation>Creates listener that receives internal status messages (for troubleshooting)</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="contextListener" type="ContextListener">
<xsd:annotation>
<xsd:documentation>Creates listener that receives internal state changes (for troubleshooting)</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="conversionRule" type="ConversionRule">
<xsd:annotation>
<xsd:documentation>Creates <a href="http://logback.qos.ch/manual/layouts.html#customConversionSpecifier">conversion specifier</a> used in pattern layouts, which creates string based on given log event</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!-- <xsd:element name="newRule" type="NewRule">-->
<!-- <xsd:annotation>-->
<!-- <xsd:documentation>Creates an XML element parser rule (NOT SUPPORTED)</xsd:documentation>-->
<!-- </xsd:annotation>-->
<!-- </xsd:element>-->
<xsd:element name="include" type="Include">
<xsd:annotation>
<xsd:documentation>Loads configuration from external source</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="includes" type="Includes">
<xsd:annotation>
<xsd:documentation>Loads first configuration found from list of external sources</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="contextName" maxOccurs="1" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Name of configuration context</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="define" type="Define">
<xsd:annotation>
<xsd:documentation>Defines property of specified class</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="timestamp" type="Timestamp">
<xsd:annotation>
<xsd:documentation>Defines string property that contains timestamp (ms)</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="property" type="Property">
<xsd:annotation>
<xsd:documentation>Defines string property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="appender" type="Appender">
<xsd:annotation>
<xsd:documentation>Creates <a href=""><code>Appender</code></a> instance</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="logger" type="Logger">
<xsd:annotation>
<xsd:documentation>Creates <a href=""><code>Logger</code></a> instance</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="root" type="Root">
<xsd:annotation>
<xsd:documentation>Creates root <a href=""><code>Logger</code></a> instance</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="https://tony19.github.io/logback-android/xml/custom" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:attribute name="debug" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Enables internal status logger (for troubleshooting)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="scan" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Enables file watcher on this configuration file, which reloads configuration on change</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="scanPeriod" type="Duration">
<xsd:annotation>
<xsd:documentation>Duration between file-change checks; <code>scan</code> must be <code>true</code></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="packagingData" type="xsd:boolean" default="false">
<xsd:annotation>
<xsd:documentation>Enables package details in stacktraces <b>(expensive process)</b></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="ShutdownHook">
<xsd:attribute name="class" type="xsd:string"
default="ch.qos.logback.core.hook.DelayingShutdownHook">
<xsd:annotation>
<xsd:documentation>Classname of <a href=""><code>ShutdownHook</code></a> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="ConversionRule">
<xsd:attribute name="conversionWord" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Word pattern that triggers conversion</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="converterClass" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Classname of <a href=""><code>ClassicConverter</code></a> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="NewRule">
<xsd:attribute name="pattern" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Element path (e.g., configuration/appender/myElement)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="actionClass" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Classname of <a href="https://tony19.github.io/logback-android/doc/2.0.0/ch/qos/logback/core/joran/action/Action.html"><code>Action</code></a> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="StatusListener">
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <a href=""><code>StatusListener</code></a> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="ContextListener">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="resetJUL" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Enables reset of <code>java.util.logging</code></xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="https://tony19.github.io/logback-android/xml/custom" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <a href=""><code>ContextListener</code></a> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="Includes">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="include" minOccurs="1" type="Include">
<xsd:annotation>
<xsd:documentation>Loads optional configuration from external source</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="https://tony19.github.io/logback-android/xml/custom" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="Include">
<xsd:attribute name="file" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Path to configuration file</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="resource" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Resource path to configuration file</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="url" type="xsd:string">
<xsd:annotation>
<xsd:documentation>URL to configuration file</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="optional" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Don't raise error if source not found</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="Define">
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="Timestamp">
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="key" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Name of property</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="datePattern" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Pattern used to format timestamp</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="timeReference" type="TimeReference">
<xsd:annotation>
<xsd:documentation>Starting reference to use</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:simpleType name="TimeReference">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="contextBirth">
<!-- <xsd:annotation>
<xsd:documentation>Creation time of logger context</xsd:documentation>
</xsd:annotation> -->
</xsd:enumeration>
<xsd:enumeration value="now">
<!-- <xsd:annotation>
<xsd:documentation>Current time</xsd:documentation>
</xsd:annotation> -->
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="RollingPolicy">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="fileNamePattern" minOccurs="1" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Pattern used to generate filenames</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="maxHistory" minOccurs="0" type="xsd:unsignedInt">
<xsd:annotation>
<xsd:documentation>Maximum number of retained log periods (based on <code>fileNamePattern</code>)</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="minIndex" minOccurs="0" type="xsd:unsignedInt">
<xsd:annotation>
<xsd:documentation>Lower bound for window's index (<a href="http://logback.qos.ch/manual/appenders.html#FixedWindowRollingPolicy"><code>FixedWindowRollingPolicy</code></a>)</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="maxIndex" minOccurs="0" type="xsd:unsignedInt">
<xsd:annotation>
<xsd:documentation>Upper bound for window's index (<a href="http://logback.qos.ch/manual/appenders.html#FixedWindowRollingPolicy"><code>FixedWindowRollingPolicy</code></a>)</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="timeBasedFileNamingAndTriggeringPolicy" minOccurs="0" type="TriggeringPolicy">
<xsd:annotation>
<xsd:documentation>Component that controls whether log rotation occurs (<code>TimeBasedRollingPolicy</code>)</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="cleanHistoryOnStart" minOccurs="0" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Enables archive removal at startup</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="maxFileSize" minOccurs="0" type="FileSize">
<xsd:annotation>
<xsd:documentation>Maximum file size of each archive</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="totalSizeCap" minOccurs="0" type="FileSize">
<xsd:annotation>
<xsd:documentation>Maximum cummulative size of all archive files</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
<xsd:attribute name="class" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Classname of <code>RollingPolicy</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:simpleType name="FileSize">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[1-9][0-9]*(KB|MB|GB)?"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Duration">
<xsd:restriction base="xsd:normalizedString">
<xsd:pattern value="[1-9][0-9]*\s*(|milli(second)?|second(e)?|minute|hour|day)s?"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="TriggeringPolicy">
<xsd:sequence>
<xsd:element name="maxFileSize" minOccurs="0" type="FileSize">
<xsd:annotation>
<xsd:documentation>Maximum file size of each archive</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="class" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Classname of <code>TriggeringPolicy</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="Property">
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Name with which specified value will be associated</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="value" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Value to be associated with specified name</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="file" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Path to <code>.properties</code> file to load</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="resource" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Path to <code>.properties</code> resource file to load</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="Appender">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="target" minOccurs="0" type="Target">
<xsd:annotation>
<xsd:documentation>Destination standard stream (<code>ConsoleAppender</code>)</xsd:documentation>
<xsd:appinfo>...<markdown>ConsoleAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="lazy" maxOccurs="1" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Don't create resource until first log event</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="file" minOccurs="0" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Path to destination file (<code>FileAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>FileAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="encoder" minOccurs="0" type="Encoder">
<xsd:annotation>
<xsd:documentation>Log event encoder</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="tagEncoder" minOccurs="0" type="Encoder">
<xsd:annotation>
<xsd:documentation>Log tag encoder (<code>LogcatAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>LogcatAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="filter" minOccurs="0" type="Filter">
<xsd:annotation>
<xsd:documentation>Log event filter</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="append" minOccurs="0" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Append log events to file instead of overwrite (<code>FileAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>FileAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="prudent" minOccurs="0" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Allow multiple writers/JVMs (<code>FileAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>FileAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="layout" minOccurs="0" type="Layout">
<xsd:annotation>
<xsd:documentation>Log event serialization layout</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="rollingPolicy" minOccurs="0" type="RollingPolicy">
<xsd:annotation>
<xsd:documentation>Component that controls how log rotation occurs (<code>RollingFileAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>RollingFileAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="triggeringPolicy" minOccurs="0" type="TriggeringPolicy">
<xsd:annotation>
<xsd:documentation>Component that controls whether log rotation occurs (<code>RollingFileAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>RollingFileAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="evaluator" maxOccurs="1" type="Evaluator">
<xsd:annotation>
<xsd:documentation>Filter that passes log event based on its evaluation</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="remoteHost" maxOccurs="1" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation>Remote host address (<code>SocketAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SocketAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="port" maxOccurs="1" type="xsd:unsignedInt">
<xsd:annotation>
<xsd:documentation>Remote host port (<code>SocketAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SocketAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="reconnectionDelay" maxOccurs="1" type="xsd:unsignedLong">
<xsd:annotation>
<xsd:documentation>Time (ms) between reconnection attempts (<code>SocketAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SocketAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="includeCallerData" maxOccurs="1" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Show caller information in stacktrace (<code>SocketAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SocketAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="maxHistory" maxOccurs="1" type="Duration">
<xsd:annotation>
<xsd:documentation>Maximum duration of retained log periods (<code>SQLiteAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SocketAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="filename" maxOccurs="1" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Path to destination file (<code>SQLiteAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SQLiteAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="dbNameResolver" maxOccurs="1" type="DBNameResolver">
<xsd:annotation>
<xsd:documentation>Name resolver for database table and columns (<code>SQLiteAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SQLiteAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="logCleaner" maxOccurs="1" type="LogCleaner">
<xsd:annotation>
<xsd:documentation>Archive removal mechanism (<code>SQLiteAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SQLiteAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="cyclicBufferTracker" maxOccurs="1" type="CyclicBufferTracker">
<xsd:annotation>
<xsd:documentation>Log event buffer (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="smtpHost" maxOccurs="1" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation>SMTP server address (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="smtpPort" maxOccurs="1" type="xsd:unsignedInt">
<xsd:annotation>
<xsd:documentation>SMTP server port (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="SSL" maxOccurs="1" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Enable SSL (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="username" maxOccurs="1" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation>Username for SMTP server (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="password" maxOccurs="1" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation>Password for SMTP server (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="to" maxOccurs="1" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation>Comma-separated email addresses to which email is sent (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="from" maxOccurs="1" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation>Email address from which email is sent (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="subject" maxOccurs="1" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation>Subject line pattern layout (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="asynchronousSending" maxOccurs="1" type="xsd:boolean" default="true">
<xsd:annotation>
<xsd:documentation>Send email asynchronously (<code>SMTPAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>SMTPAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="appender-ref" minOccurs="0" type="AppenderRef">
<xsd:annotation>
<xsd:documentation>Refers to predefined <code><appender></code> by name (<code>AsyncAppender</code>)</xsd:documentation>
<xsd:appinfo><markdown>AsyncAppender</markdown></xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="https://tony19.github.io/logback-android/xml/custom" processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:attribute name="name" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="class" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Classname of <code>Appender</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:simpleType name="Target">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="System.out"/>
<xsd:enumeration value="System.err"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="Filter">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="level" minOccurs="0" maxOccurs="unbounded" type="LoggerLevel">
<xsd:annotation>
<xsd:documentation>Level to filter logs against</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="onMatch" minOccurs="0" maxOccurs="unbounded" type="MatchValue">
<xsd:annotation>
<xsd:documentation>Action to take when filter matches</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="onMismatch" minOccurs="0" maxOccurs="unbounded" type="MatchValue">
<xsd:annotation>
<xsd:documentation>Action to take when filter does not match</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="https://tony19.github.io/logback-android/xml/custom" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xsd:choice>
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <code>Filter</code>implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:simpleType name="MatchValue">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ACCEPT">
<xsd:annotation>
<xsd:documentation>Accept log event</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="DENY">
<xsd:annotation>
<xsd:documentation>Deny log event</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="NEUTRAL">
<xsd:annotation>
<xsd:documentation>Pass log event to next filter</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="Layout">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="pattern" minOccurs="0" type="xsd:string">
<xsd:annotation>
<xsd:documentation>String that controls formatting, and consists of a mix of literal content and conversion specifiers</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="https://tony19.github.io/logback-android/xml/custom" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <code>Layout</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="Logger">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="appender-ref" minOccurs="0" maxOccurs="unbounded" type="AppenderRef">
<xsd:annotation>
<xsd:documentation>Refers to predefined <code><appender></code> by name</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="https://tony19.github.io/logback-android/xml/custom" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:attribute name="name" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Name of logger; typically name of package or class</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="level" type="LoggerLevel">
<xsd:annotation>
<xsd:documentation>Logger's verbosity level</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="additivity" type="xsd:boolean" default="true">
<xsd:annotation>
<xsd:documentation>Propagate log events to other loggers</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="Encoder">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="charset" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Character set to encode log event strings</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="immediateFlush" type="xsd:boolean" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Disable buffering; and flush to stream immediately</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="layout" minOccurs="0" type="Layout">
<xsd:annotation>
<xsd:documentation>Log event serialization layout</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="outputPatternAsHeader" type="xsd:boolean" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Insert <code>pattern</code> at top of file as column key header</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="pattern" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>String that controls formatting, and consists of a mix of literal content and conversion specifiers</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <code>Encoder</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="Root">
<xsd:sequence>
<xsd:element name="appender-ref" minOccurs="0" maxOccurs="unbounded" type="AppenderRef">
<xsd:annotation>
<xsd:documentation>Refers to predefined <code><appender></code> by name</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="level" use="required" type="LoggerLevel">
<xsd:annotation>
<xsd:documentation>Logger's verbosity level</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="AppenderRef">
<xsd:attribute name="ref" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Name of <code><appender></code> to reference</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:simpleType name="LoggerLevel">
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="OFF"/>
<xsd:enumeration value="off"/>
<xsd:enumeration value="ALL"/>
<xsd:enumeration value="all"/>
<xsd:enumeration value="INHERITED"/>
<xsd:enumeration value="inherited"/>
<xsd:enumeration value="NULL"/>
<xsd:enumeration value="null"/>
<xsd:enumeration value="ERROR"/>
<xsd:enumeration value="error"/>
<xsd:enumeration value="WARN"/>
<xsd:enumeration value="warn"/>
<xsd:enumeration value="INFO"/>
<xsd:enumeration value="info"/>
<xsd:enumeration value="DEBUG"/>
<xsd:enumeration value="debug"/>
<xsd:enumeration value="TRACE"/>
<xsd:enumeration value="trace"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="($\{.+:-)?[Oo][Ff]{2}\}?"/>
<xsd:pattern value="($\{.+:-)?[Aa][Ll]{2}\}?"/>
<xsd:pattern value="($\{.+:-)?[Ii][Nn][Hh][Ee][Rr][Ii][Tt][Ee][Dd]\}?"/>
<xsd:pattern value="($\{.+:-)?[Nn][Uu][Ll]{2}\}?"/>
<xsd:pattern value="($\{.+:-)?[Ee][Rr]{2}[Oo][Rr]\}?"/>
<xsd:pattern value="($\{.+:-)?[Ww][Aa][Rr][Nn]\}?"/>
<xsd:pattern value="($\{.+:-)?[Ii][Nn][Ff][Oo]\}?"/>
<xsd:pattern value="($\{.+:-)?[Dd][Ee][Bb][Uu][Gg]\}?"/>
<xsd:pattern value="($\{.+:-)?[Tt][Rr][Aa][Cc][Ee]\}?"/>
<xsd:pattern value="\$\{.+\}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:complexType name="DBNameResolver">
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <code>DBNameResolver</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="LogCleaner">
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <code>LogCleaner</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="CyclicBufferTracker">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="bufferSize" type="xsd:string" maxOccurs="1" default="256">
<xsd:annotation>
<xsd:documentation>Maximum log events per component</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="maxComponents" maxOccurs="1" type="xsd:unsignedInt">
<xsd:annotation>
<xsd:documentation>Maximum number of components to track</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="timeout" maxOccurs="1" type="xsd:unsignedLong" default="180000">
<xsd:annotation>
<xsd:documentation>Maximum time (ms) component is tracked</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <code>CyclicBufferTracker</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
<xsd:complexType name="Evaluator">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="marker" type="xsd:string" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Marker (<code>OnMarkerEvaluator</code>)</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="https://tony19.github.io/logback-android/xml/custom" processContents="lax" maxOccurs="unbounded" />
</xsd:choice>
<xsd:attribute name="class" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Classname of <code>Evaluator</code> implementation to invoke</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute/>
</xsd:complexType>
</xsd:schema>