Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsIssue with log4j rolling appender 1.2.16
https://www.eclipse.org/forums/index.php/mv/msg/1106047/1835087/#msg_1835087
We use log4j 1.2.16 version in our product and I have an issue with the "TimeAndSizeRollingAppender". During the process of the rollover. The first log file that gets generated does not have the first line duplicated. But all subsequent files that get rolled over has the first log line duplicated. I have tried all possible options as listed below
1. Setting setAdditivity flag to false
2. Removing all appenders before adding a new one.
3. Exercising all setter methods of "TimeAndSizeRollingAppender" class.
Nothing seems to work. Any clue would be appreciated.
Thanks,
Sailesh.
For e.g.
1st log file name = duplicate.siem.2020-11-24-20-07.1
First log line = Counter=1
2nd log file name = duplicate.siem.2020-11-24-20-07.1
First log line =Counter=196240
Second log line =Counter=196240]]>Sailesh Chandran2020-11-24T15:01:58-00:00Re: Issue with log4j rolling appender 1.2.16
https://www.eclipse.org/forums/index.php/mv/msg/1106047/1835247/#msg_1835247
https://logging.apache.org/log4j/2.x/]]>Ed Merks2020-11-28T04:51:07-00:00