You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the log4j version 2.24.3 and have an observation where the rolling over of the log files was not in control and rolled over numbering went beyond the configured limit as the logs were getting generated continuously.
Log4j configuration used in application:
Rolled over logs:
$ ls -alhtr test.log*
26M Feb 15 13:02 test.log.33075973
26M Feb 15 13:02 test.log.33075972
26M Feb 15 13:02 test.log.33075971
26M Feb 15 13:02 test.log.33075970
$ ls -alhtr test.log*
26M Feb 15 13:02 test.log.33075979
26M Feb 15 13:02 test.log.33075978
26M Feb 15 13:02 test.log.33075977
26M Feb 15 13:02 test.log.33075976
We wanted to understand if there is any known issue that is causing this or reported already in log4j 2.24.3. Thanks.
The text was updated successfully, but these errors were encountered:
Your configuration snippet seems to work correctly. Are you sure you don't have a differentRollingFile appender configured to write to test.log, but with different configuration options? Are you restarting your application after a modification to the triggering policies and rollover strategy? Changes to those values are not taken into account during a reconfiguration event, unless you also change the file name.
Hi,
We are using the log4j version 2.24.3 and have an observation where the rolling over of the log files was not in control and rolled over numbering went beyond the configured limit as the logs were getting generated continuously.
Log4j configuration used in application:
Rolled over logs:
$ ls -alhtr test.log*
26M Feb 15 13:02 test.log.33075973
26M Feb 15 13:02 test.log.33075972
26M Feb 15 13:02 test.log.33075971
26M Feb 15 13:02 test.log.33075970
$ ls -alhtr test.log*
26M Feb 15 13:02 test.log.33075979
26M Feb 15 13:02 test.log.33075978
26M Feb 15 13:02 test.log.33075977
26M Feb 15 13:02 test.log.33075976
We wanted to understand if there is any known issue that is causing this or reported already in log4j 2.24.3. Thanks.
The text was updated successfully, but these errors were encountered: