Files
tauri-plugins-workspace/plugins/log/src
hassan 92e47a1c08 fix(log): keep KeepSome cap across same-second rotations (#3718)
* fix(log): count .log.bak in KeepSome cleanup, unique same-second names

Two same-second rotations created a .log.bak file that remove_old_files
never counted (it only matched .log), so KeepSome(n) grew past its cap.
A third rotation in the same second then overwrote that .bak, losing
the lines it held. Pick the first free <name>_<date>_<n>.log on
collision instead of the .bak rename, and count legacy .log.bak files
against the keep cap.

Fixes tauri-apps/plugins-workspace#3709

* fix(log): reuse timestamp for rotation collision names
2026-11-06 11:22:41 +08:00
..