[
https://issues.apache.org/jira/browse/SM-4313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17181775#comment-17181775
]
Jean-Baptiste Onofré commented on SM-4313:
------------------------------------------
I think I already answered: sift is MDC based, with appending, it won't rolling
up. Did you try to disable appending ?
> Servicemix logs have more than one day data in single date file.
> ----------------------------------------------------------------
>
> Key: SM-4313
> URL: https://issues.apache.org/jira/browse/SM-4313
> Project: ServiceMix
> Issue Type: Bug
> Affects Versions: 7.0.1
> Reporter: Saurabh Singh
> Priority: Critical
> Attachments: org.ops4j.pax.logging.cfg
>
>
> Hi Team,
> We are using Apache ServiceMix version 7.0.1.
> We noticed that logs of more than one day are adding to the file. However,
> the log files are creating daily.
> The current date logs are getting appended in older log files randomly. For
> example,
> file name : abc.log.2019-09-05 but this file has data 2019-09-05 to data
> 2019-09-12.
> Below is servicemix/etc/org.ops4j.pax.logging.cfg logging configuration.
> {noformat}
> # Sift appender
> log4j.appender.sift=org.apache.log4j.sift.MDCSiftingAppender
> log4j.appender.sift.key=appl.name
> log4j.appender.sift.default=servicemix
> log4j.appender.sift.appender = org.apache.log4j.DailyRollingFileAppender
> log4j.appender.sift.appender.DatePattern='.'yyyy-MM-dd
> log4j.appender.sift.appender.layout=org.apache.log4j.PatternLayout
> log4j.appender.sift.appender.layout.ConversionPattern = %d{ISO8601} | %-5.5p
> | %t | %c{1} | %X{correlationId} | %m%n
> log4j.appender.sift.appender.file=${karaf.data}/log/$\\{appl.name\\}.log
> log4j.appender.sift.appender.append=true
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)