mirror of
https://github.com/winsw/winsw.git
synced 2026-04-18 19:01:53 +02:00
1e2d8db0de
* Add keepFiles support for time-based log rolling Added <keepFiles> option to "roll-by-time" log mode, allowing configuration of how many rolled log files to retain. Updated documentation, XmlServiceConfig parsing, and TimeBasedRollingLogAppender to support and enforce file retention. Old log files are now purged automatically when the limit is exceeded. * test: add unit tests Changed PurgeOldFiles to internal for test access. Added two unit tests to verify file purging behavior in TimeBasedRollingLogAppender. --------- Co-authored-by: Ciou, Mao <mao.ciou@garmin.com>