Skip to content

Conversation

hanspr
Copy link
Contributor

@hanspr hanspr commented Aug 30, 2025

If you change the log filename pattern, asbru will stop deleting the log files. It relies to much on the original pattern, it uses the pattern date to guess how old is the file, etc.

imagen

Changed the algorithm to use the modified time instead to delete the oldest. Still has a problem, if a user removes the uuid from the pattern wont be able to delete any old files. So we should consider making the uuid mandatory if the user removes it, warn that can not be saved as a pattern. Besides if removed could lead to several different sessions log to the same file and then the log is a mixture of logs from different places.

Introduced a new Library, but is supposed to be a Standard Library so it should not affect including it.

Final point, with this fix log files are removed as expected, when the max amount is reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant