Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
0.9.15
-
None
Description
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
.log
</FileNamePattern>
<!-- Keep 5 days worth of history -->
<MaxHistory>${MAX_HISTORY_DAYS}</MaxHistory>
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%d
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