-
Notifications
You must be signed in to change notification settings - Fork 0
/
file-appender.xml
36 lines (32 loc) · 1.34 KB
/
file-appender.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"?>
<included>
<appender name="FILE"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder>
<pattern>${FILE_LOG_PATTERN}</pattern>
</encoder>
<file>${LOG_FILE}</file>
<!--
<rollingPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>${LOG_FILE_MAX_SIZE:-2MB}</maxFileSize>
<maxHistory>${LOG_FILE_MAX_HISTORY:-2}</maxHistory>
<totalSizeCap>${LOG_TOTAL_SIZE_CAP:-3MB}</totalSizeCap>
</rollingPolicy>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${LOG_FILE}%i</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>3</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>${LOG_FILE_MAX_SIZE:-2MB}</maxFileSize>
</triggeringPolicy>
-->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}</fileNamePattern>
<maxHistory>${LOG_FILE_MAX_HISTORY:-2}</maxHistory>
<totalSizeCap>${LOG_TOTAL_SIZE_CAP:-3MB}</totalSizeCap>
</rollingPolicy>
</appender>
</included>