File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 </pattern >
77 </encoder >
88 </appender >
9+
10+ <property name =" LOG_FILE" value =" logback" />
11+ <appender name =" FILE" class =" ch.qos.logback.core.rolling.RollingFileAppender" >
12+ <file >${LOG_FILE}.log</file >
13+ <rollingPolicy class =" ch.qos.logback.core.rolling.TimeBasedRollingPolicy" >
14+ <!-- daily rollover -->
15+ <fileNamePattern >${LOG_FILE}.%d{yyyy-MM-dd}.gz</fileNamePattern >
16+ <!-- keep 30 days' worth of history capped at 3GB total size -->
17+ <maxHistory >30</maxHistory >
18+ <totalSizeCap >3GB</totalSizeCap >
19+ </rollingPolicy >
20+ <encoder >
21+ <pattern >%d{HH:mm:ss.SSS} %-4relative [%thread] %-5level %logger{35} -%kvp{NONE}- %msg%n</pattern >
22+ </encoder >
23+ </appender >
24+
925 <root level =" info" >
1026 <appender-ref ref =" STDOUT" />
27+ <appender-ref ref =" FILE" />
1128 </root >
1229</configuration >
You can’t perform that action at this time.
0 commit comments