
RollingFileAppender does not roll the files in SimpleSocketServer ----------------------------------------------------------------- Key: LBCLASSIC-127 URL: http://jira.qos.ch/browse/LBCLASSIC-127 Project: logback-classic Issue Type: Bug Components: Other Affects Versions: 0.9.15 Reporter: Rick Janda Assignee: Logback dev list Hello Logback team, I use the RollingFileAppender in a SimpleSocketServer. The Messages are correctly written to the files but the files are not rolled at all. If I use the same appender config directly in my applications locally, it rolls the files as expected. The appender is configures as followed: <appender name="PAYLOAD_SIFT" class="ch.qos.logback.classic.sift.SiftingAppender"> <discriminator class="com.swisscom.allip.logback.ContextBasedDiscriminator"> <DefaultValue>unknown</DefaultValue> </discriminator> <sift> <appender name="FILE-PAYLOAD-${contextName}" class="ch.qos.logback.core.rolling.RollingFileAppender"> <File>${LOG_DIR}/payload-${contextName}.log</File> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <!-- Rollover at midnight. Put log as uncompressed file to archive. --> <FileNamePattern>${LOG_DIR}/archive/payload-${contextName}_%d{yyyy-MM-dd}.log </FileNamePattern> <!-- Keep 5 days worth of history --> <MaxHistory>${MAX_HISTORY_DAYS}</MaxHistory> </rollingPolicy> <layout class="ch.qos.logback.classic.PatternLayout"> <Pattern>%d{HH:mm:ss.SSS} refId: %mdc{refId} - %msg%n%xEx{full}</Pattern> </layout> </appender> </sift> </appender> Can you please have a look at this issue. Thank you in advance, Rick -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira