-
Notifications
You must be signed in to change notification settings - Fork 2
/
log4j2.xml
102 lines (95 loc) · 4.12 KB
/
log4j2.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- PLEASE DON'T CHANGE 'strict="true"' !
Setting it to false DOES NOT disable some additional verification;
instead it changes the expected format of this configuration to "concise".
But since it is not "concise", parsing the config fails
(almost silently; Log4J2 status logging has to be activated to see it)
and we end up without any appenders. Details:
https://logging.apache.org/log4j/2.x/manual/configuration.html#ConfigurationSyntax -->
<Configuration strict="true">
<Appenders>
<Appender type="Console" name="SystemOut">
<PatternLayout>
<Pattern>%d{HH:mm:ss} %-5.5p [%-16.16t] %-40.40c - %m%n</Pattern>
</PatternLayout>
</Appender>
<RollingRandomAccessFile name="FileOut"
fileName="log/viewer.log"
filePattern="log/viewer.log-%i.gz"
immediateFlush="false">
<Policies>
<OnStartupTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="4096KB"/>
</Policies>
<PatternLayout>
<Pattern>[%d{yyyy.MM.dd-HH:mm:ss}] [%-5.5p] [%-16.16t] %-50.50c - %m%n</Pattern>
</PatternLayout>
<DefaultRolloverStrategy max="6"/>
</RollingRandomAccessFile>
</Appenders>
<Loggers>
<Logger name="net.anwiba" level="debug" additivity="false">
<AppenderRef ref="FileOut" level="debug" />
<AppenderRef ref="SystemOut" level="info" />
</Logger>
<Logger name="net.anwiba.commons.http" level="debug" additivity="false">
<AppenderRef ref="FileOut" level="debug" />
<AppenderRef ref="SystemOut" level="info" />
</Logger>
<Logger name="net.anwiba.commons.jdbc" level="debug" additivity="false">
<AppenderRef ref="FileOut" level="debug" />
<AppenderRef ref="SystemOut" level="info" />
</Logger>
<Logger name="net.anwiba.database" level="debug" additivity="false">
<AppenderRef ref="FileOut" level="debug" />
<AppenderRef ref="SystemOut" level="info" />
</Logger>
<Logger name="net.anwiba.database.dbase" level="debug" additivity="false">
<AppenderRef ref="FileOut" level="debug" />
<AppenderRef ref="SystemOut" level="info" />
</Logger>
<Logger name="net.anwiba.database.resource.constraint" level="debug" additivity="false">
<AppenderRef ref="FileOut" level="debug" />
<AppenderRef ref="SystemOut" level="info" />
</Logger>
<Logger name="net.anwiba.spatial.shapefile.converter" level="error" additivity="false">
<AppenderRef ref="FileOut" level="error" />
<AppenderRef ref="SystemOut" level="error" />
</Logger>
<Logger name="net.anwiba.spatial.shapefile.io" level="error" additivity="false">
<AppenderRef ref="FileOut" level="error" />
<AppenderRef ref="SystemOut" level="error" />
</Logger>
<Logger name="net.anwiba.spatial.renderer.layer.GeometryStyleProvider" level="error" additivity="false">
<AppenderRef ref="FileOut" level="error" />
<AppenderRef ref="SystemOut" level="error" />
</Logger>
<Logger name="net.anwiba.spatial.swing.map.MapPanel" level="debug" additivity="false">
<AppenderRef ref="FileOut" level="debug" />
<AppenderRef ref="SystemOut" level="info" />
</Logger>
<Logger name="net.anwiba.spatial.renderer.layer.RasterLayerRenderer" level="debug" additivity="false">
<AppenderRef ref="FileOut" level="debug" />
<AppenderRef ref="SystemOut" level="info" />
</Logger>
<Logger name="org.apache.http" level="warn" additivity="false">
<AppenderRef ref="FileOut"/>
<AppenderRef ref="SystemOut"/>
</Logger>
<Logger name="org.apache.http.impl.execchain" level="warn" additivity="false">
<AppenderRef ref="FileOut"/>
<AppenderRef ref="SystemOut"/>
</Logger>
<Logger name="org.apache.http.wire" level="warn" additivity="false">
<AppenderRef ref="FileOut"/>
<AppenderRef ref="SystemOut"/>
</Logger>
<Logger name="org.apache.http.http.headers" level="warn" additivity="false">
<AppenderRef ref="FileOut"/>
<AppenderRef ref="SystemOut"/>
</Logger>
<Root level="warn">
<AppenderRef ref="FileOut"/>
</Root>
</Loggers>
</Configuration>