Log Cleaner
This lightweight mod automatically removes old and unused log files, freeing up disk space and maintaining order in Minecraft's file system.
The main feature of Log Cleaner is its intelligent approach to cleaning. Instead of focusing on file creation dates, the mod analyzes the last access time for each log file. This ensures that files that may still be needed for debugging or other purposes are not accidentally deleted.
The mod is versatile in use - it works on both client and server, and is compatible with all Minecraft versions without exception.
By default, Log Cleaner is configured to delete logs that haven't been used for more than 14 days. This period is long enough for you to always have the opportunity to access the files if debugging is needed, but you can change this parameter to any number of days.
Configuration
The mod's configuration file is located at config/logcleaner.json. It contains two configurable options:
daysOld: The number of days a log file must be unused for it to be deleted. Default:14silent: If set totrue, Log Cleaner will not send a message with the number of deleted log files to the log. Default:false