-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogback.xml
41 lines (33 loc) · 1.51 KB
/
logback.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
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/enricopulatzo/logback-XSD/master/src/main/xsd/logback.xsd">
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{yyyy-mm-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="hazelcast-file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/hazelcast.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>logs/hazelcast.${PID}.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- keep 30 days' worth of history -->
<maxHistory>10</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%d{yyyy-mm-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="com.netflix.config.source.ZooKeeperConfigurationSource" level="INFO">
<appender-ref ref="stdout"/>
</logger>
<logger name="com.hazelcast" level="INFO">
<appender-ref ref="hazelcast-file"/>
</logger>
<!-- Print retries -->
<logger name="com.netflix.client.AsyncLoadBalancingClient" level="DEBUG">
<appender-ref ref="stdout"/>
</logger>
<root level="info">
<appender-ref ref="stdout" />
</root>
</configuration>