it is happening only if the TimeBasedRollingPolicy is triggered and not the size.
<appender name="SmaServerDebug" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${MAIN_LOGGING_DIR}/sma_debug.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- Hourly rollover, with size limit -->
<fileNamePattern>${ARCHIVE_LOGGING_DIR}/sma_debug_%d{yyyyMMdd_HH}.%i.log.gz</fileNamePattern>
<!-- keep 24 hours' worth of history -->
<maxHistory>24</maxHistory>
<cleanHistoryOnStart>true</cleanHistoryOnStart>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>[%X{tenant}] %d %p [%t] %logger{36} - %m%n%xEx</pattern>
</encoder>
</appender>