1
0
mirror of https://github.com/winsw/winsw.git synced 2026-04-18 19:01:53 +02:00
Files
Mao 1e2d8db0de Add keepFiles support for time-based log rolling (#1195)
* 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>
2026-04-12 17:20:55 +02:00
..
2020-12-30 02:59:17 +08:00