bug in RotateAtTimeStrategy

Please post support and help requests here.
Posts: 1
Joined: 08 Sep 2017, 16:20

bug in RotateAtTimeStrategy

Postby chemo » 08 Sep 2017, 16:31

I think there is a bug in RotateAtTimeStrategy. If application does not make any log for several days, after next log event, _threshold is shifted by 1 day (if _day == -1), which means it stays in past - instead, current datetime should be taken into account.
For example, if there is a FileChannel with RotateAtTimeStrategy with _day = -1, after 10 days of inactivity the log file is rotated 5times in a row, where each new rotated file contains one log line (mustRotate, which calls getNextRollover which shifts _threshold, is called twice if rotation takes place)

Return to “Support”

Who is online

Users browsing this forum: No registered users and 5 guests