Open
Description
openedon May 26, 2024
Requested Feature
Sopel should clean up log files older than some default number of days, with a configuration option to override it.
Problems Solved
Our main Sopel instance started spitting out errors tonight when its jail ran out of disk quota. This feature would prevent similar issues from happening to other users who don't set up an external mechanism to prune logs.
Alternatives
As alluded to above, a cron
job or other recurring task could take care of this—at the cost of extra effort from the bot owner.
Notes
The TimedRotatingFileHandler
's backupCount
option would be a simple way to implement this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment