forked from spotify/heroic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4j2-file.xml
64 lines (63 loc) · 2.29 KB
/
log4j2-file.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
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN" shutdownHook="disable">
<Appenders>
<RollingFile name="primary" fileName="/var/log/heroic/heroic.log"
filePattern="/var/log/heroic/heroic-%d{MM-dd-yyyy}-%i.log.gz">
<PatternLayout>
<Pattern>%d %p %c{1.} [%t] %m %ex%n</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="100 MB"/>
</Policies>
<DefaultRolloverStrategy max="100"/>
</RollingFile>
<RollingFile name="access" fileName="/var/log/heroic/heroic.access.log"
filePattern="/var/log/heroic/heroic-%d{MM-dd-yyyy}-%i.access.log.gz">
<PatternLayout>
<Pattern>%m%n</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="100 MB"/>
</Policies>
<DefaultRolloverStrategy max="100"/>
</RollingFile>
<!-- Remove if you don't use queryLogging -->
<RollingFile name="query_log" fileName="/var/log/heroic/heroic.query_log"
filePattern="/var/log/heroic/heroic-%d{MM-dd-yyyy}-%i.query_log.gz">
<PatternLayout>
<Pattern>%m%n</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="100 MB"/>
</Policies>
<DefaultRolloverStrategy max="100"/>
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.eclipse.jetty.server.RequestLog" level="INFO" additivity="false">
<AppenderRef ref="access" />
</Logger>
<Logger name="com.spotify.heroic" level="INFO" additivity="false">
<AppenderRef ref="primary" />
</Logger>
<!-- Remove if you don't use queryLogging -->
<Logger name="com.spotify.heroic.query_logging" level="TRACE" additivity="false">
<AppenderRef ref="query_log" />
</Logger>
<Logger name="org.elasticsearch" level="INFO" additivity="false">
<AppenderRef ref="primary" />
</Logger>
<Logger name="kafka.consumer" level="INFO" additivity="false">
<AppenderRef ref="primary" />
</Logger>
<Logger name="io.grpc" level="WARN">
<AppenderRef ref="primary" />
</Logger>
<Root level="INFO">
<AppenderRef ref="primary" />
</Root>
</Loggers>
</Configuration>