Java -Einstellung der Protokollierung mit Rotationslogback

<configuration>
 
    <property name="HOME_LOG" value="logs/app.log"/>
 
    <appender name="FILE-ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${HOME_LOG}</file>
 
        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
            <fileNamePattern>logs/archived/app.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
            <!-- each archived file, size max 10MB -->
            <!-- CHANGE HERE -->
            <maxFileSize>10MB</maxFileSize>
            <!-- total size of all archive files, if total size > 20GB, it will delete old archived file -->
            <!-- CHANGE HERE -->
            <totalSizeCap>20GB</totalSizeCap>
            <!-- 60 days to keep -->
            <!-- CHANGE HERE -->
            <maxHistory>60</maxHistory>
        </rollingPolicy>
 
        <encoder>
            <pattern>%d %p %c{1.} [%t] %m%n</pattern>
        </encoder>
    </appender>
 
    <logger name="com.test" level="debug" additivity="false">
        <appender-ref ref="FILE-ROLLING"/>
    </logger>
 
    <root level="error">
        <appender-ref ref="FILE-ROLLING"/>
    </root>
 
</configuration>
Tense Tarantula