You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "manish punwani (Jira)" <ji...@apache.org> on 2020/04/13 06:10:00 UTC
[jira] [Commented] (SM-4313) Servicemix logs have more than one day
data in single date file.
[ https://issues.apache.org/jira/browse/SM-4313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082086#comment-17082086 ]
manish punwani commented on SM-4313:
------------------------------------
Hi [~jbonofre]
Is there any update?
Thanks
manish
> 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)