Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Issue with log4j rolling appender 1.2.16(Duplicate entry after roll over)
Issue with log4j rolling appender 1.2.16 [message #1835087] Tue, 24 November 2020 15:01 Go to next message
Sailesh Chandran is currently offline Sailesh ChandranFriend
Messages: 1
Registered: November 2020
Junior Member
Hi All,
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
Re: Issue with log4j rolling appender 1.2.16 [message #1835247 is a reply to message #1835087] Sat, 28 November 2020 04:51 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
I'm not sure this is really an Eclipse-specific question. It's best to find a forum specific to log4j, likely starting here:

https://logging.apache.org/log4j/2.x/


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:recently upgraded, trying to write to old user file
Next Topic:Repeated errors after upgrading to Eclipse 2020-09
Goto Forum:
  


Current Time: Fri Apr 19 10:38:10 GMT 2024

Powered by FUDForum. Page generated in 0.03019 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top