-
Notifications
You must be signed in to change notification settings - Fork 42
/
logback.xml
98 lines (89 loc) · 4.13 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
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
<configuration scan="true" scanPeriod="30 seconds">
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36}:%line - %msg%n</pattern>
</encoder>
</appender>
<define name="LOGDIR" class="com.apollocurrency.aplwallet.apl.exec.LogDirPropertyDefiner">
<logDirectory>
apollo
</logDirectory>
</define>
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOGDIR}/apl.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- rollover daily -->
<fileNamePattern>${LOGDIR}/apl-%d{yyyy-MM-dd}_%i.gz</fileNamePattern>
<maxHistory>30</maxHistory>
<maxFileSize>100MB</maxFileSize>
<totalSizeCap>3GB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36}:%line - %msg%n</pattern>
</encoder>
</appender>
<appender name="generator-file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOGDIR}/apl-generator.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- rollover daily -->
<fileNamePattern>${LOGDIR}/apl-generator-%d{yyyy-MM-dd}_%i.gz</fileNamePattern>
<maxHistory>30</maxHistory>
<maxFileSize>100MB</maxFileSize>
<totalSizeCap>3GB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36}:%line - %msg%n</pattern>
</encoder>
</appender>
<appender name="account-file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOGDIR}/account.log</file>
<immediateFlush>true</immediateFlush>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${LOGDIR}/account_%i.log.zip</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>100</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>1000MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%d [%thread] %-5level %logger{36}:%line - %msg%n</pattern>
</encoder>
</appender>
<appender name="tp-file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOGDIR}/tp.log</file>
<immediateFlush>true</immediateFlush>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${LOGDIR}/tp_%i.log.zip</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>100</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>300MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%d [%thread] %-5level %logger{36}:%line - %msg%n</pattern>
</encoder>
</appender>
<logger name="com.apollocurrency.aplwallet.apl.core.service.appdata.TrimService" level="DEBUG"/>
<logger name="com.apollocurrency.aplwallet.apl.core.service.blockchain.TransactionProcessorImpl" level="DEBUG" additivity="true"/>
<logger name="com.apollocurrency.aplwallet.apl.core.service.blockchain.BlockchainProcessorImpl" level="DEBUG" additivity="true"/>
<logger name="com.apollocurrency.aplwallet.apl" level="INFO"/>
<!--Uncomment next line to enable trim duration logging-->
<!--<logger name="com.apollocurrency.aplwallet.apl.db.VersionedDeletableEntityDbTable" level="trace"/>-->
<logger name="org.eclipse.jetty" level="off" additivity="false"/>
<logger name="javax.servlet.level" level="off" additivity="false"/>
<logger name="com.apollocurrency.aplwallet.apl.core.http.APIProxyServlet" level="info"/>
<logger name="org.testcontainers" level="DEBUG"/>
<logger name="com.github.dockerjava" level="DEBUG"/>
<logger name="io.firstbridge.process" level="DEBUG"/>
<logger name="jdbc" level="off"/>
<logger name="jdbc.connection" level="info"/>
<logger name="jdbc.sqltiming" level="info"/>
<logger name="com.zaxxer" level="warn"/>
<logger name="p6spy" level="trace"/>
<root level="warn">
<appender-ref ref="console"/>
<appender-ref ref="file"/>
</root>
</configuration>