-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4net_log4j2.xml
36 lines (35 loc) · 1.33 KB
/
log4net_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
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="TRACE" packages="io.vertigo.analytics.server.feeders.influxdb.log4net">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
</Console>
<RollingFile name="RollingFile" fileName="analytics_events.log" filePattern="analytics_events-%i.log">
<PatternLayout>
<Pattern>%m %n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="100 MB" />
</Policies>
<DefaultRolloverStrategy max="50" />
</RollingFile>
<InfluxdbProcess4net name="InfluxdbProcess4net" serverUrl="*" login="*" password="*" />
<InfluxdbMetric name="InfluxdbMetric" serverUrl="*" login="*" password="*" />
<InfluxdbHealth name="InfluxdbHealth" serverUrl="*" login="*" password="*" />
</Appenders>
<Loggers>
<Logger name="analytics-health" level="info" additivity="false">
<AppenderRef ref="InfluxdbHealth" />
<AppenderRef ref="RollingFile" />
</Logger>
<Logger name="analytics-metric" level="info" additivity="false">
<AppenderRef ref="InfluxdbMetric" />
<AppenderRef ref="RollingFile" />
</Logger>
<Root level="info">
<AppenderRef ref="InfluxdbProcess4net" />
<AppenderRef ref="RollingFile" />
<AppenderRef ref="Console" />
</Root>
</Loggers>
</Configuration>