You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Saurabh Singh (Jira)" <ji...@apache.org> on 2020/02/04 07:57:00 UTC
[jira] [Created] (SM-4313) DailyRollingFileAppender adding logs of
more than one day in single date file.
Saurabh Singh created SM-4313:
---------------------------------
Summary: DailyRollingFileAppender adding logs of more than one day 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
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)