<?xml version="1.0" encoding="UTF-8"?>
<included>

    <!-- log格式日志收集 -->
    <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <File>${logdir}/${appname}.log</File>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <FileNamePattern>${logdir}/${appname}.log.%d{yyyy-MM-dd}.gz</FileNamePattern>
            <!-- 保存30天 -->
            <maxHistory>30</maxHistory>
        </rollingPolicy>
        <encoder>
            <charset>UTF-8</charset>
            <pattern>%date{yyyy-MM-dd HH:mm:ssS'Z} | %-5level[%X{traceId:-}] %thread - %logger{36}| %msg%n</pattern>
        </encoder>
    </appender>

</included>